-
Notifications
You must be signed in to change notification settings - Fork 25
/
jest.config.ts
33 lines (30 loc) · 1.19 KB
/
jest.config.ts
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
import type { Config } from "jest";
const ignorePatterns = "node_modules/(?!(jest-)?@react-native|react-native|"
+ "react-clone-referenced-element|@react-native-community|expo(nent)?|"
+ "@expo(nent)?/.*|react-navigation|@react-navigation/.*|@unimodules/.*|"
+ "unimodules|sentry-expo|native-base||(?!react-native-redash))|jest-runner";
const config: Config = {
moduleNameMapper: {
"\\.svg": "<rootDir>/tests/mocks/svgMock.js"
},
preset: "react-native",
setupFiles: [
"./node_modules/react-native-gesture-handler/jestSetup.js",
"./node_modules/@react-native-google-signin/google-signin/jest/build/jest/setup.js",
"<rootDir>/tests/jest.setup.js"
],
globalSetup: "<rootDir>/tests/jest.globalSetup.js",
setupFilesAfterEnv: [
"react-native-accessibility-engine",
"<rootDir>/tests/jest.post-setup.js",
"<rootDir>/tests/realm.setup.js",
"<rootDir>/tests/initI18next.setup.js"
],
transformIgnorePatterns: [ignorePatterns],
verbose: true
// uncomment reporters below to see which tests are running the slowest in jest
// reporters: [
// ["jest-slow-test-reporter", {"numTests": 8, "warnOnSlowerThan": 300, "color": true}]
// ],
};
export default config;