-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
27 lines (27 loc) · 867 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
/* eslint-disable: no-undef */
module.exports = {
clearMocks: true,
collectCoverageFrom: [
'src/**/*.{js,jsx,mjs}',
'!src/routes/index.jsx',
'!src/App.js',
'!src/index.js',
'!src/assets/js/cookies.js',
],
coverageDirectory: 'coverage',
moduleFileExtensions: ['js', 'json', 'jsx'],
moduleNameMapper: {
'\\.(css|scss)$': '<rootDir>/src/__mocks__/styleMock.js',
'\\.(jpg|jpeg|png|gif|otf|webp|svg)$': '<rootDir>/src/__mocks__/fileMock.js',
},
setupFiles: ['<rootDir>/enzyme.config.js'],
testEnvironment: 'jsdom',
testMatch: ['**/__tests__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'],
testPathIgnorePatterns: ['\\\\node_modules\\\\', './__tests__/helpers/*'],
testURL: 'http://localhost',
transformIgnorePatterns: ['<rootDir>/node_modules/'],
transform: {
'^.+\\.jsx?$': 'babel-jest'
},
verbose: false,
};