Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Sep 4, 2024
1 parent f7e8b8f commit 67a9827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions unit-testing/vue/jsdom-environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/**
* Workaround for the missing `TextEncoder` in JSDOM.
*
* {@link https://github.com/mswjs/mswjs.io/issues/292#issue-1977585807}
*/

Expand Down
7 changes: 0 additions & 7 deletions unit-testing/vue/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 67a9827

Please sign in to comment.