-
Notifications
You must be signed in to change notification settings - Fork 73
/
jest.config.js
22 lines (20 loc) · 818 Bytes
/
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
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["<rootDir>/test/**/*.spec.ts"],
testTimeout: 900000, // 15 minutes. Must match UPSTREAM_POLLING_CONFIGURATION in test/helpers/kubernetes-upstream.ts
bail: true,
clearMocks: true,
errorOnDeprecated: true,
/** https://github.com/facebook/jest/issues/2867#issuecomment-546592968 */
setupFilesAfterEnv: ["./jest.setup-after-env.js"],
// 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
globals: {
"ts-jest": {
isolatedModules: true,
},
},
};