-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (30 loc) · 825 Bytes
/
jest.config.js
File metadata and controls
30 lines (30 loc) · 825 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
29
30
module.exports = {
testEnvironment: 'jsdom',
testPathIgnorePatterns: [
'/node_modules/',
'/build/',
'/dist/',
'/docs/',
],
testResultsProcessor: 'jest-sonar-reporter',
coverageDirectory: 'reports/coverage',
coverageReporters: ['json', 'lcov', 'text', 'text-summary', 'clover'],
collectCoverageFrom: [
'packages/*/src/**/*.{js,jsx}',
'!**/node_modules/**',
'!**/*.{test,tests}.{js,jsx}',
'!**/build/**/*',
'!**/dist/**/*',
'!**/docs/**/*',
'!**/jest.*.js',
'!**/babel.*.js',
'!**/parcel.js',
],
setupFiles: ['./jest.setup.js', 'jest-canvas-mock'],
/* eslint-disable-next-line xss/no-mixed-html */
snapshotSerializers: [
'<rootDir>/node_modules/enzyme-to-json/serializer',
'jest-serializer-html',
],
setupFilesAfterEnv: ['jest-extended'],
}