Skip to content

Commit

Permalink
chore: extract jest.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Oct 14, 2024
1 parent a6a6116 commit b9e0b2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
preset: "react-native",
collectCoverageFrom: ["javascript/**/*.js"],
setupFiles: ["./setup-jest.js", "./__tests__/__mocks__/react-native.mock.js"],
modulePathIgnorePatterns: ["example", "__tests__/__mocks__", "fixtures"],
};
15 changes: 0 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,6 @@
"resolutions": {
"typescript": "5.5.3"
},
"jest": {
"preset": "react-native",
"collectCoverageFrom": [
"javascript/**/*.js"
],
"setupFiles": [
"./setup-jest.js",
"./__tests__/__mocks__/react-native.mock.js"
],
"modulePathIgnorePatterns": [
"example",
"__tests__/__mocks__",
"fixtures"
]
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "yarn lint"
},
Expand Down

0 comments on commit b9e0b2a

Please sign in to comment.