We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16c45f4 commit 26f0f5cCopy full SHA for 26f0f5c
1 file changed
tests/utils.tsx
@@ -1,3 +1,5 @@
1
+import { TextDecoder, TextEncoder } from 'node:util';
2
+
3
import type { Poool } from 'poool-access';
4
import type { ReactNode } from 'react';
5
import puppeteer, { type LaunchOptions } from 'puppeteer';
@@ -9,6 +11,9 @@ import {
9
11
AuditContext,
10
12
} from '../src/contexts';
13
14
+globalThis.TextDecoder = TextDecoder;
15
+globalThis.TextEncoder = TextEncoder;
16
17
export const createBrowser = (opts?: LaunchOptions) =>
18
puppeteer.launch({
19
headless: !process.env.HEADFULL,
0 commit comments