●Change8

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