-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (34 loc) · 963 Bytes
/
jest.config.js
File metadata and controls
34 lines (34 loc) · 963 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
32
33
34
module.exports = {
clearMocks: true,
collectCoverageFrom: ["src/**/*.{js,jsx,mjs}"],
moduleFileExtensions: [
"web.js",
"js",
"json",
"web.jsx",
"jsx",
"node",
"mjs"
],
moduleNameMapper: {
"^react-native$": "react-native-web"
},
notify: false,
setupTestFrameworkScriptFile: "./src/__tests__/setup/setupEnzyme.js",
snapshotSerializers: [
"enzyme-to-json/serializer"
],
testEnvironment: "node",
testMatch: [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}",
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
],
testPathIgnorePatterns: ["./src/__tests__/setup/"],
testURL: "http://localhost",
transform: {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$"]
};