-
Notifications
You must be signed in to change notification settings - Fork 5
/
jest.unit.config.js
21 lines (20 loc) · 842 Bytes
/
jest.unit.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const { defaults: tsjPreset } = require("ts-jest/presets")
module.exports = {
...tsjPreset,
preset: "jest-expo",
transform: {
'^.+\\.tsx?$': ['ts-jest', {
babelConfig: true,
}]
},
transformIgnorePatterns: [
"<rootDir>/node_modules/(?!@react-native|react-native|@expo-.*|expo-.*|@react-navigation)",
],
testPathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/e2e", "/detox", "@react-native", "<rootDir>/test", "<rootDir>/assets", "<rootDir>/app/services/reactotron"],
coveragePathIgnorePatterns: [
"<rootDir>/node_modules/", "/detox", "@react-native", "<rootDir>/test", "<rootDir>/assets", "<rootDir>/app/services/reactotron", "<rootDir>/app/navigators", "<rootDir>/app/components"
],
testEnvironment: "node",
setupFiles: ["<rootDir>/test/setup.unit.tsx"],
workerIdleMemoryLimit: "1GB",
}