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();