haoqunjiang / vite-jest

First-class Vite integration for Jest
MIT License
406 stars 51 forks source link

Coverage report generates fingerprints in filenames #36

Open fauxparse opened 2 years ago

fauxparse commented 2 years ago

If I turn collectCoverage on in my jest.config.js, the generated coverage report adds fingerprints into the names of the files (e.g. Button.tsx?1643925799148). This not only breaks the HTML report (as the filenames of the pages for the individual files include the question marks), but generates a new file per tested file for each test run!

I'm struggling to find a configuration option to turn this behaviour off, even just in the test environment.