-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
41 lines (41 loc) · 1021 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
35
36
37
38
39
40
41
/**
* @external https://goo.gl/fhrRke
* @description We store all of our JEST configuration in here vs. our
* package.json as we require a fair amount of configuration
*/
module.exports = {
automock: false,
collectCoverage: false,
collectCoverageFrom: ['src/**/*.ts', 'src/**/*.tsx'],
coverageDirectory: '<rootDir>/coverage',
coverageReporters: ['lcov', 'json'],
coverageThreshold: {
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50
}
},
globals: {
mount: true,
render: true,
shallow: true
},
moduleDirectories: ['node_modules'],
moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
moduleNameMapper: {},
modulePathIgnorePatterns: ['<rootDir>/templates'],
reporters: ['default'],
setupFiles: [],
testMatch: [
'<rootDir>/src/**/*.test.js',
'<rootDir>/src/**/*.test.ts',
'<rootDir>/src/**/*.test.tsx'
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
},
transformIgnorePatterns: [],
verbose: false
};