diff --git a/jest.config.js b/jest.config.js index f3de998f..f134764a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,10 @@ // eslint-disable-next-line functional/immutable-data module.exports = { preset: "react-native", + modulePathIgnorePatterns: [ + "/example/node_modules", + "/lib/" + ], transformIgnorePatterns: [ "node_modules/(?!(jest-)?@react-native|react-native|react-navigation|@react-navigation|react-navigation-redux-helpers|react-native-device-info|native-base|native-base-shoutem-theme|@shoutem/animation|@shoutem/ui|rn-placeholder|jsbarcode|@pagopa/react-native-cie|react-native-share|jail-monkey|@react-native-community/art|@react-native-community/push-notification-ios|@react-native-community/cameraroll|@codler|@react-native-community/datetimepicker|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|io-react-native-zendesk|rn-qr-generator)" ], @@ -12,5 +16,5 @@ module.exports = { "@testing-library/jest-native/extend-expect", "./jestSetupAfterEnv.js" ], - collectCoverage: true, + collectCoverage: true }; diff --git a/package.json b/package.json index 4a66a7d9..fb474792 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "lint": "eslint \"**/*.{js,ts,tsx}\"", "prettify": "prettier --write \"src/**/*.(ts|tsx)\"", "prepack": "bob build", + "prepare": "bob build", "release": "release-it", "example": "yarn --cwd example", "bootstrap": "yarn example && yarn install", @@ -126,13 +127,6 @@ "engines": { "node": ">= 16.0.0" }, - "jest": { - "preset": "react-native", - "modulePathIgnorePatterns": [ - "/example/node_modules", - "/lib/" - ] - }, "commitlint": { "extends": [ "@commitlint/config-conventional"