Skip to content

All coverage missing, minimal example #5964

Answered by AriPerkkio
donmccurdy asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for minimal repros, it was easy to debug the root cause using those. 👍

This is a bug that's related to dist name specifically.

export const defaultExclude = [
'**/node_modules/**',
'**/dist/**',

Here the defaultExclude is a hard coded default in Vitest. The this.options.exclude is what user sets in coverage.exclude. We should only use this.options.exclude here, and add defaultExclude to its default values. Then user could explicitly disable ignoring dist directory. Right now it's not possible as defaultExclude is always used.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@donmccurdy
Comment options

@AriPerkkio
Comment options

Answer selected by donmccurdy
@donmccurdy
Comment options

@AriPerkkio
Comment options

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