-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (26 loc) · 852 Bytes
/
Copy pathjest.config.js
File metadata and controls
28 lines (26 loc) · 852 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
27
28
/*eslint-env node*/
module.exports = {
verbose: false,
collectCoverageFrom: [
'tests/js/spec/**/*.{js,jsx,tsx}',
'assets/js/**/*.{js,jsx,ts,tsx}',
],
coverageReporters: ['html', 'cobertura'],
coverageDirectory: '.artifacts/coverage',
moduleNameMapper: {
'\\.(css|less|png|jpg|mp4|svg)$': '<rootDir>/tests/js/__mocks__/styleMock.js',
'^app(.*)$': '<rootDir>/assets/js$1',
'^tests(.*)$': '<rootDir>/tests/js$1',
},
modulePaths: ['<rootDir>/assets/js'],
testMatch: ['<rootDir>/tests/js/**/*(*.)@(spec|test).(js|ts)?(x)'],
unmockedModulePathPatterns: ['<rootDir>/node_modules/react'],
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'babel-jest',
},
moduleFileExtensions: ['js', 'ts', 'jsx', 'tsx'],
globals: {},
setupFiles: ['<rootDir>/tests/js/setup.ts'],
reporters: ['default'],
};