Coming from Karma I like to keep a browser tab opened to check the code coverage of my tests from time to time. Is possible with a jest to generate the coverage folder without jest printing the coverage in the console?
I have not found out any cli or config about this.
You can set up
coverageReporters
config for jest like this:jest.config.js
:By default, the value of
coverageReporters
configuration is["json", "lcov", "text", "clover"]
As you can see, if you don't want to print the coverage report in stdout, you need to remove
text
reporter.Before:
After: