forked from snyk/snyk-docker-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
29 lines (28 loc) · 1.19 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
preset: "ts-jest",
setupFilesAfterEnv: ["<rootDir>/test/matchers/setup.ts"],
testEnvironment: "node",
testMatch: ["<rootDir>/test/**/*.spec.ts"],
testPathIgnorePatterns: ["<rootDir>/test/windows/"],
testTimeout: 600000, // 10 minutes
// TODO: This option is printing Array\Object prefixing arrays\objects in snapshots files
// this settings were added when migrated to Jest 29 to support the old snapshots format
// this settings should be removed in the future after snapshot migration to the new Jest snapshot format
// more details over the breaking change of Jest snapshot format can be found here:
// https://jestjs.io/docs/next/upgrading-to-jest29#snapshot-format
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
// TODO: This is here until a bug in Jest (which in turn affects ts-jest) is resolved.
// It affects our CI/CD runs and makes the machine run out of memory.
// https://github.com/facebook/jest/issues/10550
// https://snyk.slack.com/archives/CLW30N31V/p1602232569018000?thread_ts=1602230753.017500&cid=CLW30N31V
transform: {
'^.+\\.tsx?$': [
'ts-jest', {
isolatedModules: true
},
],
},
};