-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathjest.config.cjs
More file actions
31 lines (30 loc) · 799 Bytes
/
jest.config.cjs
File metadata and controls
31 lines (30 loc) · 799 Bytes
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
const { ignorePatterns } = require('./.eslintrc');
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.ts?$': [
'ts-jest',
{
ignoreCoverageForAllDecorators: true,
tsconfig: 'tsconfig.test.json',
},
],
},
testRegex: '\\.test.ts$',
testRunner: 'jest-circus/runner',
coverageThreshold: {
global: {
branches: 70,
statements: 80,
},
},
coverageDirectory: 'coverage/ts',
collectCoverage: true,
coverageReporters: ['json', 'lcov', 'text'],
coveragePathIgnorePatterns: ['/node_modules/', '/tests/data/'],
testTimeout: 60000,
moduleNameMapper: {
'^~/(.*)$': '<rootDir>/src/$1',
},
};