We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d25f86 commit 62ebd9dCopy full SHA for 62ebd9d
packages/gatsby/test/integration.test.tsx
@@ -3,13 +3,16 @@ import { render } from '@testing-library/react';
3
import { useEffect } from 'react';
4
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5
import * as React from 'react';
6
+import { TextEncoder, TextDecoder } from 'util';
7
8
import { onClientEntry } from '../gatsby-browser';
9
import * as Sentry from '../src';
10
11
beforeAll(() => {
12
(global as any).__SENTRY_RELEASE__ = '683f3a6ab819d47d23abfca9a914c81f0524d35b';
13
(global as any).__SENTRY_DSN__ = 'https://[email protected]/0';
14
+ (global as any).TextEncoder = TextEncoder;
15
+ (global as any).TextDecoder = TextDecoder;
16
});
17
18
describe('useEffect', () => {
0 commit comments