v4.0.17
📦 vitestView on GitHub →
✨ 2 features🐛 22 fixes🔧 6 symbols
Summary
This release introduces OpenTelemetry support for browser mode and context propagation via environment variables. It also includes numerous bug fixes across browser, coverage, pool, and runner modules.
✨ New Features
- Support openTelemetry for browser mode
- Support TRACEPARENT and TRACESTATE environment variables for OpenTelemetry context propagation
🐛 Bug Fixes
- Improve asymmetric matcher diff readability by unwrapping container matchers
- Improve runner error when importing outside of test context
- Replace crypto.randomUUID to allow insecure environments
- Handle null options in `addEventHandler`
- Fix typo in browser.provider error
- Browser: Fix `process.env` and `import.meta.env` defines in inline project
- Browser: Fix upload File instance
- Browser: Fix invalid project token for artifacts assets
- Browser: Log `ErrorEvent.message` when unhandled `ErrorEvent.error` is null
- Browser: Support `fileParallelism` on an instance
- Coverage: Remove unnecessary `istanbul-lib-source-maps` usage
- Coverage: Apply patch from istanbuljs/istanbuljs#837
- fsModuleCache: Don't store importers in cache
- fsModuleCache: Add importers alongside importedModules
- mocker: Fix mock transform with class
- pool: Validate environment options when reusing the worker
- pool: Handle worker start failures gracefully
- reporter: Report test module if it failed to run
- runner: Respect nested test.only within describe.only
- typecheck: Improve error message when tsc outputs help text
- ui: Detect gzip by magic numbers instead of Content-Type header in html reporter
- webdriverio: Fall back to WebDriver Classic