forked from jakeherp/portfolio
-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.js
38 lines (37 loc) · 843 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
33
34
35
36
37
38
process.env.TZ = 'GMT';
module.exports = {
roots: ['<rootDir>'],
testMatch: [
'**/tests/**/*.test.ts',
'**/tests/**/*.test.tsx',
'**/*.test.ts',
'**/*.test.tsx',
],
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.js'],
testPathIgnorePatterns: [
'<rootDir>/build/',
'/dist/',
'<rootDir>/node_modules/',
'<rootDir>/test/mockedTypes/',
],
moduleFileExtensions: ['js', 'ts', 'tsx', 'json'],
collectCoverageFrom: [
'**/src/**/**/*.{js,jsx,ts,tsx}',
'src/**/*.{js,jsx,ts,tsx}',
'!src/redux/**/index.ts',
'!**/src/components/**/*.stories.+(js|ts|tsx)',
'!**/__tests__/**',
'!**/node_modules/**',
'!**/.next/**',
'!**/build/**',
],
coverageThreshold: {
global: {
statements: 80,
branches: 75,
functions: 80,
lines: 80,
},
},
projects: ['./test/jest.lint.js', './test/jest.unittest.js'],
};