forked from i18next/next-i18next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
29 lines (26 loc) · 820 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
/* eslint-disable array-element-newline */
module.exports = {
automock: false,
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!src/index.ts',
'!src/components/index.ts',
'!src/hocs/index.ts',
'!src/middlewares/index.ts',
'!src/utils/index.ts',
'!src/router/index.ts',
],
setupFiles: ['<rootDir>/jest.setup.js'],
preset: 'jest-puppeteer',
testPathIgnorePatterns: [
'<rootDir>/.next/',
'<rootDir>/node_modules/',
'<rootDir>/__tests__/test-i18next-config.ts',
'<rootDir>/__tests__/types.test.ts',
'<rootDir>/__tests__/config/test-helpers.ts',
'<rootDir>/.e2e',
'<rootDir>/examples/simple/__tests__/e2e/locale-subpaths-all.config.js',
'<rootDir>/examples/simple/__tests__/e2e/locale-subpaths-foreign.config.js',
],
}