-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
34 lines (34 loc) · 947 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
34
module.exports = {
testMatch: ['<rootDir>/src/**/*.spec.ts'],
collectCoverageFrom: [
'!<rootDir>/src/packages/eslint-plugin-eigenspace-script/src/tests/utils/**/*',
'!**/index.ts',
'<rootDir>/src/packages/**/*.ts'
],
coveragePathIgnorePatterns: [
'.*\\.d\\.ts'
],
setupFiles: ['<rootDir>/config/jest/setup/console.setup.js'],
transform: {
'^(?!.*\\.(js|ts|tsx|css|json)$)': '<rootDir>/config/jest/transform/file.transform.js',
'^.+\\.ts$': '<rootDir>/config/jest/transform/typescript.transform.js'
},
moduleFileExtensions: [
'ts',
'js',
'json',
'node'
],
globals: {
'ts-jest': { tsConfig: 'tsconfig.spec.json' }
},
collectCoverage: true,
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
}
};