-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (21 loc) · 665 Bytes
/
jest.config.js
File metadata and controls
22 lines (21 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
preset: "react-native",
collectCoverage: true,
coveragePathIgnorePatterns: ["node_modules", "src/utils"],
moduleDirectories: ["node_modules"],
transform: {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js",
"\\.(ts|tsx)$": "ts-jest"
},
setupFiles: ["<rootDir>/jest.setup.js"],
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
transformIgnorePatterns: [],
globals: {
"ts-jest": {
tsConfig: "tsconfig.jest.json"
}
},
testPathIgnorePatterns: ["dist/"]
};