Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
were complaining that ReferenceError: TextEncoder is not defined
  • Loading branch information
slim committed Nov 20, 2023
1 parent 5758f0e commit f1010fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import '@testing-library/jest-dom';
import { TextEncoder } from 'util';
import { TextEncoder, TextDecoder } from 'util';
// eslint-disable-next-line import/no-extraneous-dependencies
import { Request } from 'node-fetch';

global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder as any;
global.Request = Request as any;

0 comments on commit f1010fb

Please sign in to comment.