Skip to content

Commit 2a1eb64

Browse files
committed
Tvinger TextEncoder og TextDecoder inn i jest setup.
1 parent b0b5ab3 commit 2a1eb64

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/jest.setup.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
12
import { toHaveNoViolations } from "jest-axe";
3+
import { TextEncoder, TextDecoder } from "util";
24

35
expect.extend(toHaveNoViolations);
6+
// @ts-ignore
7+
global.TextEncoder = TextEncoder;
8+
// @ts-ignore
9+
global.TextDecoder = TextDecoder;

0 commit comments

Comments
 (0)