-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
46 lines (46 loc) · 1.06 KB
/
jest.config.js
File metadata and controls
46 lines (46 loc) · 1.06 KB
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
40
41
42
43
44
45
46
module.exports = {
clearMocks: true,
collectCoverageFrom: [
"<rootDir>/src/**/*.js"
],
coverageDirectory: "coverage",
coverageReporters: [
"json",
"text",
"lcov",
"clover",
"cobertura"
],
coverageThreshold: {
global: {
branches: 50, functions: 40, lines: 40, statements: 40
}
},
moduleFileExtensions: [
"js",
"json",
"jsx"
],
moduleNameMapper: {
"\\.(css|less|css!)$": "<rootDir>/jest/empty-module.js"
},
modulePathIgnorePatterns: [
"<rootDir>/node_modules/", "<rootDir>/dist/*"
],
setupFiles: [
"./jest/jest.setup.js"
],
testEnvironment: "node",
testMatch: [
"**/__tests__/**/*.js?(x)",
"<rootDir>/src/**/?(*.)+(spec|test).js?(x)"
],
transform: {
'.+\\.(css|css!|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$':
'jest-transform-stub',
'^.+\\.(js|jsx)?$': 'babel-jest'
},
transformIgnorePatterns: [
"/node_modules/"
]
}