-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 875 Bytes
/
jest.config.js
File metadata and controls
26 lines (26 loc) · 875 Bytes
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
module.exports = {
globals: {
CONFIG: {
project_name: 'labors',
baseURL: 'http://localhost'
},
},
transformIgnorePatterns: [
// "node_modules/(?!(etna-js)/)"
],
moduleNameMapper: {
"^service-worker-loader\!": "<rootDir>/__mocks__/service-worker-loader.js",
'^react$': '<rootDir>/node_modules/react',
'^react-redux$': '<rootDir>/node_modules/react-redux',
'^react-dom$': '<rootDir>/node_modules/react-dom',
'^react-modal$': '<rootDir>/node_modules/react-modal',
'^enzyme$': '<rootDir>/node_modules/enzyme',
'^enzyme-adapter-react-16$':
'<rootDir>/node_modules/enzyme-adapter-react-16'
},
testURL: 'http://localhost',
testMatch: [ "**/__tests__/**/?(*.)(spec|test).(j|t)s?(x)" ],
collectCoverageFrom: [ "**/*.js?(x)" ],
setupFilesAfterEnv: [ "./spec/setup.js" ],
setupFiles: [ "raf/polyfill" ]
};