-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (17 loc) · 795 Bytes
/
jest.config.js
File metadata and controls
19 lines (17 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const { defaults: tsjPreset } = require("ts-jest/jest-preset")
module.exports = {
...tsjPreset,
preset: "jest-expo",
globals: {
"ts-jest": {
babelConfig: true,
}
},
transformIgnorePatterns: [
"<rootDir>/node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)"],
testPathIgnorePatterns: ["<rootDir/node_modules/", "@react-native", "/e2e"],
setupFilesAfterEnv: ["@testing-library/jest-native/extend-expect"]
// the following config settings cause problemsn for this configuration:
// testEnvironment: "jsdom",
// setupFiles: ["<rootDir>/test/setup.ts"],
}