forked from react-next-boilerplate/react-next-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
32 lines (32 loc) · 782 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
30
31
32
module.exports = {
collectCoverageFrom: [
'src/**/*.{js,jsx,mjs}',
'!src/pages/_*.js',
'!coverage/**',
'!src/.next/**',
'!server/**',
'!src/utils/with-redux-store.js',
'!<rootDir>/i18n.js',
'!<rootDir>/next.config.js',
'!src/utils/with-i18next.js',
],
testPathIgnorePatterns: [
'<rootDir>/src/.next',
'<rootDir>/node_modules/',
'<rootDir>/next.config.js',
'<rootDir>/coverage/',
'<rootDir>/server/',
],
coverageThreshold: {
global: {
statements: 90,
branches: 90,
functions: 90,
lines: 90,
},
},
moduleDirectories: ['node_modules', 'src'],
testRegex: 'tests/.*\\.test\\.js$',
setupFilesAfterEnv: ['<rootDir>/config/jest/jest-dom-extend-expect'],
snapshotSerializers: [],
};