feat!: use module-runner instead of vite-node#8208
feat!: use module-runner instead of vite-node#8208sheremet-va merged 86 commits intovitest-dev:mainfrom
Conversation
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…t; branch 'main' of github.com:vitest-dev/vitest into feat/use-module-runner
|
@AriPerkkio for some reason in the browser V8 marks the
But the log prints only once and the The coverage from v8 is also different: |
|
For some reason the Vue's CSS query is now again included in coverage. The failing test is especially for this: vitest/test/coverage-test/fixtures/src/Vue/Defined.vue Lines 17 to 22 in a4df683 Previously these were filtered out, not anymore. I did not check why this happens. To reproduce, add following in |
Do you remember why they were filtered before? Is it some kind of a glob? |
|
Looking at history, it seems it was related to the order of file loading: Relying on order seems unreliable. Let's actually do similar CSS request exclusion that we do for istanbul: vitest/packages/coverage-istanbul/src/provider.ts Lines 52 to 58 in a4df683 |
f65d582 to
53e4e10
Compare
Now this breaks even more code in Vue 😄 The number of branches increased to 10 in every provider (weird, because I only changed v8), but v8 and v8-browser now have a difference: |
|
All Taking a look |
I did a bit of a different change - I am filtering CSS requests here 60794d6 |
|
Could it be related to the |
Oh, yes, that makes sense. But why would The generated code now looks like this: Edit: v8 has more statements and lines than v8-browser |
|
@AriPerkkio thank you for commit! All works now 🎉 |
|
|


Description
Fixes #7888
Fixes #6667
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.