Skip to content

[UI] cannot access exisiting coverage from "--outDir html" despite "--outDir coverage" working #5564

Answered by hi-ogawa
gterras asked this question in Q&A
Discussion options

You must be logged in to vote

This is probably a current (reasonably odd) limitation as explained in https://vitest.dev/config/#coverage-reportsdirectory

To preview the coverage report in the output of HTML reporter, this option must be set as a sub-directory of the html report directory (for example ./html/coverage).

Can you try setting test.coverage.reportsDirectory: ./html/coverage?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gterras
Comment options

Answer selected by gterras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants