Skip to content

Commit a4ddc9c

Browse files
Merge pull request #99 from contentstack/EXP-406
chore(deps): security fixes and toolchain updates [EXP-406]
2 parents 945d23c + 4ecb816 commit a4ddc9c

5 files changed

Lines changed: 2891 additions & 6377 deletions

File tree

jest.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
2-
preset: 'ts-jest',
3-
testEnvironment: 'jsdom',
4-
testResultsProcessor: "./node_modules/jest-html-reporter"
2+
preset: "ts-jest",
3+
testEnvironment: "jsdom",
4+
setupFiles: ["<rootDir>/jest.setup.js"],
5+
testResultsProcessor: "./node_modules/jest-html-reporter",
56
};

jest.setup.js

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

0 commit comments

Comments
 (0)