-
Notifications
You must be signed in to change notification settings - Fork 5
/
jest.e2e.config.js
20 lines (19 loc) · 820 Bytes
/
jest.e2e.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/", "/detox", "__tests?__", "@react-native", "<rootDir>/test", "<rootDir>/assets", "<rootDir>/app/services/reactotron"],
coveragePathIgnorePatterns: [
"<rootDir>/node_modules/", "/detox", "__tests?__", "@react-native", "<rootDir>/test", "<rootDir>/assets", "<rootDir>/app/services/reactotron", "<rootDir>/app/navigators", "<rootDir>/app/components"
],
testEnvironment: "node",
setupFiles: ["<rootDir>/test/setup.e2e.tsx"],
}