-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
enhancement: pending triagep2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Description
Clear and concise description of the problem
So, I want to do an extensive E2E testing for an external package I use. Currently @vitest/coverage-v8 only provides coverage for files that are in the project itself.
Suggested solution
Add an option to the Vite's test config to include and collect coverage of node_modules.
Alternative
c8 has excludeNodeModules option but it seems to only include the files to the report, but it reports incorrect files (probably because of relying on the source maps of the package)
Additional context
I looks like @vitest/coverage-istanbul doesn't support it neither
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
enhancement: pending triagep2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Type
Projects
Status
P2 - 2