Skip to content

Commit

Permalink
Merge pull request #194 from fatso83/patch-1
Browse files Browse the repository at this point in the history
Notes on legacy background for testResultsProcessor
  • Loading branch information
palmerj3 committed Nov 24, 2021
2 parents 76bba08 + e5dad73 commit 851b546
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ For your Continuous Integration you can simply do:
jest --ci --reporters=default --reporters=jest-junit
```

## Usage as testResultsProcessor
In your jest config add the following entry:
## Usage as testResultsProcessor (deprecated)
The support for `testResultsProcessor` is only kept for [legacy reasons][test-results-processor] and might be removed in the future.
You should therefore prefer to configure `jest-junit` as a _reporter_.

Should you still want to, add the following entry to your jest config:
```JSON
{
"testResultsProcessor": "jest-junit"
Expand Down Expand Up @@ -247,3 +250,5 @@ Will render
</testsuite>
</testsuites>
```

[test-results-processor]: https://github.com/jest-community/jest-junit/discussions/158#discussioncomment-392985

0 comments on commit 851b546

Please sign in to comment.