-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
29 lines (29 loc) · 934 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
module.exports = {
collectCoverageFrom: [
'<rootDir>/src/jsx/**/*.{js,jsx}',
'!<rootDir>/src/jsx/reducers/index.js',
'!<rootDir>/src/jsx/index.jsx',
'!<rootDir>/src/jsx/App/store.js',
],
setupFiles: ['<rootDir>/cfg/jest/shim.js', '<rootDir>/cfg/jest/setup.js'],
testMatch: ['<rootDir>/src/jsx/**/?(*.)(spec|test).(js|jsx)'],
testEnvironment: 'jsdom',
transform: {
'^.+\\.(jsx|js)$': 'babel-jest',
'^(?!.*\\.(js|jsx|css|json)$)': '<rootDir>/cfg/jest/fileTransform.js',
},
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
watchPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/.git/',
'<rootDir>/app/',
'<rootDir>/cfg/',
'<rootDir>/public/',
'<rootDir>/resources/',
'<rootDir>/src/scss',
],
moduleDirectories: ['node_modules', '<rootDir>/src/jsx/'],
moduleNameMapper: {},
moduleFileExtensions: ['js', 'jsx'],
snapshotSerializers: ['enzyme-to-json/serializer'],
};