-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathjest.config.js
More file actions
23 lines (23 loc) · 758 Bytes
/
jest.config.js
File metadata and controls
23 lines (23 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
cacheDirectory: '<rootDir>/.tmp/jest',
coverageDirectory: './.tmp/coverage',
moduleNameMapper: {
'^.+\\.(css|scss|cssmodule)$': 'identity-obj-proxy'
},
modulePaths: ['<rootDir>'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
globals: {
NODE_ENV: 'test'
},
verbose: true,
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js|jsx)$',
testPathIgnorePatterns: ['/node_modules/', '/__tests__/mocks/.*', '/cypress/'],
coveragePathIgnorePatterns: ['typings.d.ts'],
transformIgnorePatterns: ['.*(node_modules).*$'],
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest'
},
setupFiles: ['<rootDir>/setupTests.js'],
snapshotSerializers: ['enzyme-to-json/serializer']
};