Skip to content

Commit

Permalink
better fix for jest using babel.config.native.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Jan 8, 2023
1 parent 73fd7ac commit c97bcdf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "next build",
"next-start": "next start",
"test:all": "yarn test:jest",
"test:jest": "mv babel.config.native.js babel.config.js && jest; mv babel.config.js babel.config.native.js",
"test:jest": "jest",
"lint:all": "yarn lint:eslint && yarn lint:prettier && yarn lint:types",
"lint:eslint": "eslint src/",
"lint:eslint:fix": "eslint --fix src/",
Expand Down Expand Up @@ -87,6 +87,13 @@
"json",
"node"
],
"transform": {
"\\.[jt]sx?$": [
"babel-jest",
{"configFile": "./babel.config.native.js"}
]
},
"roots": ["../"],
"transformIgnorePatterns": [
"node_modules/(?!react-native|@react-native|react-native-vector-icons|solito|@react-navigation)"
]
Expand Down

1 comment on commit c97bcdf

@vercel
Copy link

@vercel vercel bot commented on c97bcdf Jan 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

luna – ./

luna-criszz77.vercel.app
luna-git-nextjs-criszz77.vercel.app
luna-gamma.vercel.app

Please sign in to comment.