Skip to content

Commit db11603

Browse files
committed
Adding jest.setup file
1 parent bcba681 commit db11603

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

jest.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const path = require("path");
2-
const { TextEncoder, TextDecoder } = require("util");
3-
4-
global.TextEncoder = TextEncoder;
5-
global.TextDecoder = TextDecoder;
62

73
module.exports = {
84
rootDir: ".",

jest.setup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// jest.setup.js
2+
const { TextEncoder, TextDecoder } = require("util");
3+
4+
global.TextEncoder = TextEncoder;
5+
global.TextDecoder = TextDecoder;

0 commit comments

Comments
 (0)