-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
31 lines (31 loc) · 982 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
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
testEnvironment: 'jest-environment-jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
setupFiles: ['<rootDir>/.jest/setupEnvVariables.ts'],
testPathIgnorePatterns: [
'<rootDir>/.next/',
'<rootDir>/node_modules/',
'<rootDir>/coverage',
'<rootDir>/dist',
'<rootDir>/cypress',
],
moduleDirectories: ['<rootDir>/node_modules', '<rootDir>'],
moduleNameMapper: {
'@pages/(.*)': '<rootDir>/pages/$1',
'@components/(.*)': '<rootDir>/components/$1',
'@animations/(.*)': '<rootDir>/animations/$1',
'@styled/(.*)': '<rootDir>/styled/$1',
'@utils/(.*)': '<rootDir>/lib/$1',
},
coverageDirectory: 'coverage',
collectCoverageFrom: ['./**/*.{js,jsx,ts,tsx}', './**/*/*.{js,jsx,ts,tsx}'],
coverageThreshold: {
global: {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
},
};