diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 000000000..0b2a61fca --- /dev/null +++ b/jest.config.js @@ -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"], +}; diff --git a/package.json b/package.json index fc2470a36..08bb403e6 100644 --- a/package.json +++ b/package.json @@ -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" },