-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
31 lines (31 loc) · 945 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
module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'mjs'],
moduleNameMapper: {
'^@helpers(.*)$': '<rootDir>/test/helpers$1',
'^@/(.*)$': '<rootDir>/src/$1',
},
transform: {
'^.+\\.tsx?$': '<rootDir>/node_modules/ts-jest',
'\\.svg$': '<rootDir>/test/transformer.ts',
},
testPathIgnorePatterns: ['e2e/', 'test/'],
snapshotSerializers: ['enzyme-to-json/serializer', 'jest-emotion'],
collectCoverage: false,
collectCoverageFrom: ['<rootDir>/src/**/*', '!**/*.spec.*', '!**/*index.*', '!**/corpNav.ts'],
coveragePathIgnorePatterns: ['/node_modules/'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
setupFilesAfterEnv: ['<rootDir>/test/init.ts'],
transformIgnorePatterns: ['<rootDir>/node_modules/.urbancompass.jfrog.io/(?!(@uc)/)'],
globals: {
'ts-jest': {
packageJson: 'package.json',
},
},
};