-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
39 lines (35 loc) · 1.01 KB
/
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
39
// module.exports = {
// testPathIgnorePatterns: ["/node_modules/", "/.next/"],
// setupFilesAfterEnv: [
// "<rootDir>/src/tests/setupTests.ts"
// ],
// transform: {
// "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest"
// },
// testEnvironment: 'jsdom',
// moduleNameMapper: {
// "\\.(scss|css|sass)$": "identity-obj-proxy"
// },
// collectCoverage: true,
// collectCoverageFrom: [
// "src/**/*.tsx",
// "!src/**/*.spec.tsx",
// "!src/**/_app.tsx",
// "!src/**/_document.tsx",
// ],
// coverageReporters: ["lcov", "json"]
// };
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
coverageProvider: 'v8',
moduleNameMapper: {
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
},
roots: ['<rootDir>'],
setupFilesAfterEnv: ["<rootDir>/src/tests/setupTests.ts"],
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': '<rootDir>/node_modules/babel-jest',
},
};