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

Fallback to coverage-final.json #319

Open
Crafoord opened this issue Sep 27, 2022 · 1 comment
Open

Fallback to coverage-final.json #319

Crafoord opened this issue Sep 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Crafoord
Copy link

Crafoord commented Sep 27, 2022

Idea

When using vitest instead of jest for running the tests I can't manage to get the json report to include the coverageMap property. But I can tell my coverage-reporter to generate a ['json'] file. From what I can tell this json file (outputs as coverage-final.json) contains the exact same data as the coverageMap does.

So... Could a fallback be to check for this file when coverageMap property does not exist (instead of it crashing with a null/undefined error).

Additional context

coverageMap missing from the json report causes this action to crash.

This "error" is discussed here: #244

@Crafoord Crafoord added the enhancement New feature or request label Sep 27, 2022
@nowyDEV
Copy link

nowyDEV commented Sep 28, 2022

Described workaround in mentioned issue

#244 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants