-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
41 lines (41 loc) · 1.02 KB
/
jest.config.js
File metadata and controls
41 lines (41 loc) · 1.02 KB
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
39
40
41
module.exports = {
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
transform: { '^.+\\.tsx?$': 'ts-jest' },
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
// setupTestFrameworkScriptFile: '<rootDir>/src/jestSetup.ts',
verbose: false,
moduleNameMapper: {
'^@app/(.*)$': '<rootDir>/src/app/$1',
'^@test/(.*)$': '<rootDir>/src/test/$1',
'^@src/(.*)$': '<rootDir>/src/$1'
},
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/src/test/'
],
modulePathIgnorePatterns: [
'<rootDir>/coverage/',
'<rootDir>/devdist/',
'<rootDir>/dist/'
],
coveragePathIgnorePatterns: [
'(.*).json',
'<rootDir>/node_modules/',
'<rootDir>/.vscode/',
'<rootDir>/src/test/stubs/',
'<rootDir>/src/test/mocks/',
'<rootDir>/src/jestSetup.ts',
'<rootDir>/jest.config.js',
'<rootDir>/mockIndex.js'
],
coverageReporters: ['html', 'lcovonly', 'text-summary'],
coverageThreshold: {
global: {
'branches': 100,
'functions': 100,
'lines': 100,
'statements': 100
}
},
setupFiles: ['<rootDir>/mockIndex.js']
}