-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.js
33 lines (32 loc) · 954 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
23
24
25
26
27
28
29
30
31
32
33
const package = require('./package');
module.exports = {
cacheDirectory: '<rootDir>/test/.jest/cache',
coverageDirectory: '<rootDir>/test/coverage',
coveragePathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/test'],
// setupFiles: ['<rootDir>/jest/globals.ts'],
coverageReporters: ['lcov', 'json', 'text'],
coverageThreshold: {
global: {
branches: 85,
functions: 85,
lines: 85,
statements: 85,
},
},
displayName: package.name,
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.json',
},
window: {},
},
moduleFileExtensions: ['js', 'ts'],
name: package.name,
reporters: ['default'],
snapshotSerializers: ['<rootDir>/test/serializer.ts'],
testPathIgnorePatterns: ['\\.snap$', 'node_modules/', 'test/'],
transform: {
'\\.(ts|tsx)$': 'ts-jest',
},
verbose: true,
};