4.0.17
🚀 Experimental Features
- Support openTelemetry for browser mode - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9180 (1ec3a)
- 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 (876cb)
🐞 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 (b2ec7)
- Improve runner error when importing outside of test context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9335 (2dd3d)
- 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 (e6a3f)
- 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 (40841) - Typo in browser.provider error - by @deammer in https://github.com/vitest-dev/vitest/issues/9394 (4b67f)
- browser:
- Fix
process.envandimport.meta.envdefines in inline project - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9239 (b70c9) - Fix upload File instance - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9294 (b6778)
- Fix invalid project token for artifacts assets - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9321 (caa7d)
- Log
ErrorEvent.messagewhen unhandledErrorEvent.erroris null - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9322 (5d84e) - Support
fileParallelismon an instance - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9328 (15006)
- Fix
- coverage:
- Remove unnecessary
istanbul-lib-source-mapsusage - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9344 (b0940) - 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 (e05ce)
- Remove unnecessary
- fsModuleCache:
- Don't store importers in cache - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9422 (75136)
- Add importers alongside importedModules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9423 (59f92)
- mocker:
- Fix mock transform with class - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9421 (d390e)
- pool:
- Validate environment options when reusing the worker - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9349 (a8a88)
- Handle worker start failures gracefully - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9337 (200da)
- reporter:
- Report test module if it failed to run - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9272 (c7888)
- 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 (55d5d)
- typecheck:
- Improve error message when tsc outputs help text - by @Ujjwaljain16 in https://github.com/vitest-dev/vitest/issues/9214 (7b10a)
- 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 (dd033)
- 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 (c23dd)