-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (31 loc) · 802 Bytes
/
jest.config.js
File metadata and controls
31 lines (31 loc) · 802 Bytes
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
module.exports = {
name: "ReactNodeExpress",
bail: 1,
verbose: true,
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/node_modules/",
"!<rootDir>/webpack/",
],
testMatch: ["<rootDir>/test/**/?(*.)(spec|test).js"],
testPathIgnorePatterns: ["<rootDir>/(node_modules|bin|build)"],
coverageThreshold: {
global: {
branches: 50,
functions: 90,
lines: 90,
statements: 90,
},
},
moduleDirectories: ["node_modules", "src"],
transformIgnorePatterns: [`/node_modules/`],
transform: {
"^.+\\.(js|jsx)?$": "babel-jest",
"^.+\\.(css)$": "identity-obj-proxy",
},
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|svg|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/src/__mocks__/fileMock.js",
"\\.(css|less)$": "identity-obj-proxy",
},
};