https://github.com/danieldiekmeier/jest-custom-reporter-reproduction
https://github.com/danieldiekmeier/jest-custom-reporter-reproduction
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danieldiekmeier/jest-custom-reporter-reproduction
- Owner: danieldiekmeier
- Created: 2023-04-04T10:20:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T10:40:28.000Z (about 2 years ago)
- Last Synced: 2025-01-15T10:13:07.631Z (5 months ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduction: Jest Reporters run in different order after Jest 28
The Jest issue this belongs to: https://github.com/facebook/jest/issues/14052
```sh
npm install
npm test
```There is a custom reporter in `reporter.js`, which wants to use the coverage information. But the coverage information is only collected after the custom reporter is already finished.
Using a `setInterval`, we can poll until the CoverageReporter is done.