Skip to content

Commit

Permalink
chore: Add prepare script (#299)
Browse files Browse the repository at this point in the history
## Short description
This PR adds `prepare` script in the `package.json` file

## List of changes proposed in this pull request
- updated the `package.json`
- added `modulePathIgnorePatterns` in `jest.config.js`

## How to test
Checks should pass correctly
  • Loading branch information
adelloste authored Jun 26, 2024
1 parent 5742cb4 commit 313f295
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 5 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// eslint-disable-next-line functional/immutable-data
module.exports = {
preset: "react-native",
modulePathIgnorePatterns: [
"<rootDir>/example/node_modules",
"<rootDir>/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)"
],
Expand All @@ -12,5 +16,5 @@ module.exports = {
"@testing-library/jest-native/extend-expect",
"./jestSetupAfterEnv.js"
],
collectCoverage: true,
collectCoverage: true
};
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -126,13 +127,6 @@
"engines": {
"node": ">= 16.0.0"
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/example/node_modules",
"<rootDir>/lib/"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
Expand Down

0 comments on commit 313f295

Please sign in to comment.