From 67a982708ed0ff27f9e5e00e389320dec05108bc Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Wed, 4 Sep 2024 14:56:33 +0200 Subject: [PATCH] Clean up --- unit-testing/vue/jsdom-environment.ts | 2 ++ unit-testing/vue/setup.ts | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/unit-testing/vue/jsdom-environment.ts b/unit-testing/vue/jsdom-environment.ts index fb4fe6e..3a7a9a5 100644 --- a/unit-testing/vue/jsdom-environment.ts +++ b/unit-testing/vue/jsdom-environment.ts @@ -1,4 +1,6 @@ /** + * Workaround for the missing `TextEncoder` in JSDOM. + * * {@link https://github.com/mswjs/mswjs.io/issues/292#issue-1977585807} */ diff --git a/unit-testing/vue/setup.ts b/unit-testing/vue/setup.ts index 412444d..52a4b98 100644 --- a/unit-testing/vue/setup.ts +++ b/unit-testing/vue/setup.ts @@ -3,13 +3,6 @@ import { Vue } from "@siteimprove/alfa-vue"; import * as alfa from "@siteimprove/alfa-jest"; -// Not sure why this is needed, but it fixes a missing TextEncoder problem. -// It might be something that needs to be fixed in alfa-jest, but we seem to not -// be the only ones with this problem. -// See https://github.com/inrupt/solid-client-authn-js/issues/1676#issuecomment-917016646 -import { TextEncoder } from "node:util"; -globalThis.TextEncoder = globalThis.TextEncoder || TextEncoder; - // Only selecting a rule that apply to buttons. import { Rules } from "@siteimprove/alfa-rules"; const R12 = Rules.get("R12").getUnsafe();