-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix(coverage): browser mode + coverage.all
#7597
base: main
Are you sure you want to change the base?
fix(coverage): browser mode + coverage.all
#7597
Conversation
@vitest/browser
@vitest/coverage-istanbul
@vitest/expect
@vitest/mocker
@vitest/coverage-v8
@vitest/pretty-format
@vitest/runner
@vitest/snapshot
@vitest/spy
@vitest/ui
@vitest/utils
vite-node
vitest
@vitest/web-worker
@vitest/ws-client
commit: |
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
85550bc
to
874d14d
Compare
a2a5043
to
272ae0d
Compare
bae901e
to
73c530e
Compare
b4fa6d4
to
2208f7d
Compare
2208f7d
to
12d473c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright the Windows issues are finally resolved. @mrginglymus could you do one final check with https://pkg.pr.new/vitest@12d473c
and equivalent preview packages with your real-world project?
// On Windows root doesn't start with "/" while filenames do | ||
if (!filename.startsWith(root) && !filename.startsWith(`/${root}`)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Windows the root
is here D:/a/vitest/vitest/test/coverage-test
while filename is /D:/a/vitest/vitest/test/coverage-test/fixtures/src/untested-file.ts
.
continue | ||
} | ||
|
||
if (browser) { | ||
browser.config.optimizeDeps.noDiscovery = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sheremet-va do you think we need to reset this back to its original value after coverage is generated? Now that it's left as true
, would this cause issues in watch-mode?
/ecosystem-ci run E: Looks like recent pnpm catalog changes broke whole ecosystem-ci. Unrelated to this PR. |
Description
vitenode
for uncovered files #6044 (comment)Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.