Packages

@vitest/spy

5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed

Your version

0.34.2

17 Aug 2023Where it was published

0.34.7 is the newest release of 0.34.x.

In short

3 new1 faster21 fixed1 internal

Release note

Features

  • Allow importing CSS and assets inside external dependencies when using --experimental-vm-threads

  • vitest: Allow calling ctx.skip() inside the running test

Bug Fixes

  • Don't bundle utils' source-map entry

  • Reduce the memory consumption when running --experimental-vm-threads

  • Indicator position of error message

  • Don't crash when using --experimental-vm-threads, interop CJS default inside node_modules

  • Don't crash if total memory is not supported

  • Check memory and limit value

  • Update module warning as it is moved into server config

  • Define process variable and using import.meta.env together did not work

  • Correctly resolve config in a workspace

  • Don't crash when calling useFakeTimers in VM pool

  • Restrict access to file system via API

  • Build not generated execute.d.ts

  • css: Don't mock css-module if ?inline query is specified

  • expect: Correctly show async matcher diff

  • snapshots: Update inline snapshot correctly

  • ui: Incorrect duration time in vitest ui

  • ui: Add support for ui coverage with subdir option

  • vitest: Use esm module resolution to resolve env

  • vitest: Allow rewriting process.env.NODE_MODE when using web transform mode

  • vitest: Only consider cwd when using glob

  • vitest: Pass environmentOptions to happy-dom integration

  • web: Correctly resolve assets in new URL

Performance

  • dot-renderer: Speed up getTests