Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 6b8de21

Browse files
committed
Fix test npm script
1 parent 02ae384 commit 6b8de21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"scripts": {
1414
"docs:gen:api": "./scripts/docgen",
15-
"test": "jest",
15+
"test": "jest --all --env=jsdom",
1616
"test:watch": "jest --watch --env=jsdom",
1717
"test:ci": "export JEST_JUNIT_OUTPUT=\"coverage/junit/js-test-results.xml\" && jest --env=jsdom --runInBand --ci --coverage --testResultsProcessor=\"jest-junit\"",
1818
"lint": "eslint ."
@@ -63,6 +63,9 @@
6363
"setupFiles": [
6464
"<rootDir>/setupTests.js"
6565
],
66+
"transform": {
67+
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
68+
},
6669
"modulePathIgnorePatterns": [
6770
"<rootDir>/examples/Playground/node_modules"
6871
]

0 commit comments

Comments
 (0)