v4.0.8
π¦ vitestView on GitHub β
π 9 fixesπ§ 8 symbols
Summary
Vitest v4.0.8 includes a series of bug fixes covering Vite config merging, missing type definitions, error messages, CSP header cleanup, Windows Defender handling, annotation encoding, spy static property copying, and WebdriverIO click behavior.
π Bug Fixes
- Workaround `noExternal` merging bug on Vite 6.
- Add missing `context.d.ts` file.
- Fix incorrect error message for non-awaited `expect.element()`.
- Browser: Cleanup `frame-ancestors` from CSP header at coverage middleware.
- Update all nonβmajor dependencies.
- Forks: Prevent failures when Windows Defender is enabled.
- Runner: Properly encode `Uint8Array` body in annotations.
- Spy: Copy static properties when spy is initialized with `vi.fn()` and fix types for `vi.spyOn(obj, class)`.
- WebdriverIO: Ensure `.click` interaction without arguments passes no arguments to the underlying webdriver command.
π§ Affected Symbols
noExternalcontext.d.tsexpect.elementcoverage middleware CSP headerUint8Array annotationsvi.fnvi.spyOnwebdriverio.click