-
Notifications
You must be signed in to change notification settings - Fork 105
/
jest.config.js
18 lines (18 loc) · 1.22 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = {
preset: "react-native",
transformIgnorePatterns: [
"node_modules/(?!(jest-)?@react-native|react-native|react-navigation|@react-navigation|react-navigation-redux-helpers|react-native-device-info|rn-placeholder|jsbarcode|@pagopa/react-native-cie|react-native-share|jail-monkey|@react-native-community/art|@react-native-community/push-notification-ios|@shopify/react-native-skia|lottie-react-native|@react-native-camera-roll/camera-roll|@codler|remark|unified|bail|is-plain-obj|trough|vfile|unist-util-stringify-position|mdast-util-from-markdown|mdast-util-to-string|micromark|parse-entities|character-entities|mdast-util-to-markdown|zwitch|longest-streak|@pagopa/io-react-native-zendesk|rn-qr-generator|mixpanel-react-native|@pagopa/io-app-design-system|uuid|@sentry/react-native)"
],
moduleNameMapper: {
"\\.svg": "<rootDir>/ts/__mocks__/svgMock.js"
},
setupFiles: [
"./jestSetup.js",
"./node_modules/react-native-gesture-handler/jestSetup.js",
"./node_modules/@shopify/react-native-skia/jestSetup.js"
],
globalSetup: "./jestGlobalSetup.js",
setupFilesAfterEnv: ["@testing-library/jest-native/extend-expect"],
collectCoverage: true,
testPathIgnorePatterns: [".*fiscal-code.test.ts$"]
};