Skip to content

Commit

Permalink
Added jest-junit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlixH committed Nov 12, 2021
1 parent 0a30aa6 commit ecdbba4
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
preset: 'react-native',
reporters: [ "default", "jest-junit" ],
testResultsProcessor: "jest-junit",
globals: {
'ts-jest': {
// Tell ts-jest about our typescript config.
Expand Down
75 changes: 75 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"ios:release": "react-native run-ios --configuration Release",
"pod:install": "cd ios && pod install",
"pod:deintegrate": "cd ios && pod deintegrate",
"test": "jest",
"test": "jest -- -u --ci --testResultsProcessor='jest-junit' --reporters=default --reporters=jest-junit",
"precommit": "npm test",
"lint": "cross-env TIMING=1 eslint src __tests__ types App.tsx --ext .js,.ts,.tsx",
"lint:fix": "cross-env TIMING=1 eslint src __tests__ types App.tsx --fix --ext .js,.ts,.tsx",
Expand Down Expand Up @@ -191,6 +191,7 @@
"import-sort-parser-typescript": "^6.0.0",
"import-sort-style-module": "^6.0.0",
"jest": "^26.6.3",
"jest-junit": "^13.0.0",
"jetifier": "^2.0.0",
"metro": "^0.64.0",
"metro-config": "^0.64.0",
Expand Down

0 comments on commit ecdbba4

Please sign in to comment.