-
Notifications
You must be signed in to change notification settings - Fork 16
/
jest.config.js
22 lines (21 loc) · 1.03 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const { defaults: tsjPreset } = require("ts-jest/presets")
/** @type {import('@jest/types').Config.ProjectConfig} */
module.exports = {
...tsjPreset,
preset: "jest-expo",
transformIgnorePatterns: [
"<rootDir>/node_modules/(react-clone-referenced-element|@react-native-community|react-navigation|@react-navigation/.*|@unimodules/.*|native-base|react-native-code-push)",
"jest-runner",
],
transform: {
'\\.[jt]sx?$': 'babel-jest'
},
testPathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/.maestro/", "@react-native", "<rootDir>/app/arclib"],
testEnvironment: "jsdom",
setupFiles: ["<rootDir>/test/setup.ts", "@shopify/react-native-skia/jestSetup.js"],
transformIgnorePatterns: [
'xnode_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-native-community|expo(nent)?|@expo(nent)?/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|@sentry/.*)',
'node_modules/better-sqlite3/.*'
],
globalSetup: "@shopify/react-native-skia/globalJestSetup.js",
}