-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.base.js
38 lines (35 loc) · 1.02 KB
/
jest.base.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
30
31
32
33
34
35
36
37
38
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// The directory where Jest should store its cached dependency information
coverageDirectory: 'coverage',
// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
// "text",
// "lcov",
// "clover"
// ],
coverageReporters: ['json', 'text', 'lcov'],
// TODO: Add coverageThreshold
// coverageThreshold: {
// global: {
// branches: 80,
// functions: 80,
// lines: 80,
// statements: 80
// }
// },
globals: {
'ts-jest': {
tsConfig: 'override-value-in-extended-module'
}
},
preset: 'ts-jest',
rootDir: 'override-value-in-extended-module',
testEnvironment: 'node',
transform: {
'^.+\\.(js|ts)x?$': 'ts-jest'
},
moduleFileExtensions: ['ts', 'js', 'json'] // Note: `--ext .ts,.ts, etc.` is required when calling `eslint` directly from the command line
}