🚨 Breaking Changes
- TransformMode affects only test files, not regular files - by @sheremet-va in #3491 (9608b)
- Disable
coverage.reportOnFailure
by default - by @AriPerkkio in #3615 (0c6f6) - Remove
@vitest/coverage-c8
package - by @AriPerkkio in #3614 (a90d6) - Support running tests using VM context - by @sheremet-va and @dammy001 in #3203 (b0929)
🚀 Features
- Support
describe.sequential
- by @fenghan34 and @dammy001 in #3771 (86934) - Support config junit reporter className with env - by @InfiniteXyy in #3808 (e8bc4)
- Running vitest with
--related --watch
reruns non-affected tests if they were changed during a run - by @sheremet-va in #3844 (c9aea) - Introduce
server
option - by @fenghan34 and @sheremet-va in #3725 (dc4fa) - Add preact example, remove optimizer experimental status, enable by default - by @sheremet-va and @eryue0220 in #3854 (4b946)
- vite-node: Make CLI arguments parsing behavior consistent with node/tsx/ts-node - by @rxliuli in #3574 (1cd4e)
🐞 Bug Fixes
- Isolate workers between envs and workspaces - by @AriPerkkio (ed4e0)
- Modify condition - by @btea (a78e6)
- Module Graph view is blocking the Console view - by @g4rry420 (3b5f9)
- Port the latest
defineConfig
type from vite - by @sodatea in #3804 (9c8e3) - Don't overwrite Node.js URL global - by @sheremet-va in #3828 (cdab4)
- ForceRerunTriggers correctly triggers a rerun - by @sheremet-va in #3829 (17988)
- browser:
- core:
- coverage:
- V8 provider to pick source maps without url query params - by @AriPerkkio in #3784 (280e6)
- Update
istanbul-lib-instrument
to v6 to fix vulnerable dependency - by @AriPerkkio in #3814 (f3bd9) - Exclude vite virtual modules by default - by @AriPerkkio in #3794 (3c851)
- node:
- vite-node:
- Always treat node_modules as modulesDirectory - by @sheremet-va in #3830 (51ab8)
- Normalize drive letter to keep the same reference to a module - by @sheremet-va in #3836 (45521)
- Correctly resolve hmr filepath - by @sheremet-va in #3834 (711a6)
- watch:
- Clear screen on all terminals - by @AriPerkkio in #3661 (8bd26)
🏎 Performance
- Deprecate deps.registerNodeLoader - by @sheremet-va (7f45b)