Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running tests with multiple "--coverageReporters" options #3419

Closed
jondewoo opened this issue Sep 23, 2021 · 2 comments · Fixed by #4096
Closed

Running tests with multiple "--coverageReporters" options #3419

jondewoo opened this issue Sep 23, 2021 · 2 comments · Fixed by #4096

Comments

@jondewoo
Copy link
Contributor

Running yarn rw test --coverage --coverageReporters=html --coverageReporters=text results in:

Failed to write coverage reports:
ERROR: Error: Cannot find module 'html,text'

Looking at the command line, what is actually executed is something like:

jest --coverage true --coverageReporters html,text --passWithNoTests

It looks like the multiple "--coverageReporters" option values are joined into one with a "," separator, which is not supported by jest.

@InbarRose
Copy link

any update on this?

@thedavidprice
Copy link
Contributor

thedavidprice commented Jan 29, 2022

This will be resolved (hopefully) in #4096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
4 participants