v4.0.17
🚀 Experimental Features
- Support openTelemetry for browser mode - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9180 <samp>(1ec3a)</samp>
- Support TRACEPARENT and TRACESTATE environment variables for OpenTelemetry context propagation - by @Copilot, hi-ogawa and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9295 <samp>(876cb)</samp>
🐞 Bug Fixes
- Improve asymmetric matcher diff readability by unwrapping container matchers - by @Copilot, sheremet-va, hi-ogawa and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9330 <samp>(b2ec7)</samp>
- Improve runner error when importing outside of test context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9335 <samp>(2dd3d)</samp>
- Replace crypto.randomUUID to allow insecure environments (fix #9… - by @plusgut in https://github.com/vitest-dev/vitest/issues/9339 and https://github.com/vitest-dev/vitest/issues/9 <samp>(e6a3f)</samp>
- Handle null options in
addEventHandler#9371 - by @ThibautMarechal in https://github.com/vitest-dev/vitest/issues/9372 and https://github.com/vitest-dev/vitest/issues/9371 <samp>(40841)</samp> - Typo in browser.provider error - by @deammer in https://github.com/vitest-dev/vitest/issues/9394 <samp>(4b67f)</samp>
- browser:
- Fix
process.envandimport.meta.envdefines in inline project - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9239 <samp>(b70c9)</samp> - Fix upload File instance - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9294 <samp>(b6778)</samp>
- Fix invalid project token for artifacts assets - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9321 <samp>(caa7d)</samp>
- Log
ErrorEvent.messagewhen unhandledErrorEvent.erroris null - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9322 <samp>(5d84e)</samp> - Support
fileParallelismon an instance - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9328 <samp>(15006)</samp>
- Fix
- coverage:
- Remove unnecessary
istanbul-lib-source-mapsusage - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9344 <samp>(b0940)</samp> - Apply patch from istanbuljs/istanbuljs#837 - by @AriPerkkio and sapphi-red in https://github.com/vitest-dev/vitest/issues/9413 and https://github.com/vitest-dev/vitest/issues/837 <samp>(e05ce)</samp>
- Remove unnecessary
- fsModuleCache:
- Don't store importers in cache - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9422 <samp>(75136)</samp>
- Add importers alongside importedModules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9423 <samp>(59f92)</samp>
- mocker:
- Fix mock transform with class - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9421 <samp>(d390e)</samp>
- pool:
- Validate environment options when reusing the worker - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9349 <samp>(a8a88)</samp>
- Handle worker start failures gracefully - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9337 <samp>(200da)</samp>
- reporter:
- Report test module if it failed to run - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9272 <samp>(c7888)</samp>
- runner:
- Respect nested test.only within describe.only - by @Ujjwaljain16 in https://github.com/vitest-dev/vitest/issues/9021 and https://github.com/vitest-dev/vitest/issues/9213 <samp>(55d5d)</samp>
- typecheck:
- Improve error message when tsc outputs help text - by @Ujjwaljain16 in https://github.com/vitest-dev/vitest/issues/9214 <samp>(7b10a)</samp>
- ui:
- Detect gzip by magic numbers instead of Content-Type header in html reporter - by @Copilot, hi-ogawa and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9278 <samp>(dd033)</samp>
- webdriverio:
- Fall back to WebDriver Classic #9244 - by @JustasMonkev in https://github.com/vitest-dev/vitest/issues/9373 and https://github.com/vitest-dev/vitest/issues/9244 <samp>(c23dd)</samp>
View changes on GitHub
Fetched June 1, 2026
