What’s New

Vitest v5.0.0-beta.7

v5.0.0-beta.7Pre-release
Added
  • Add toggable injectCjsGlobals option
  • Promote fsModuleCache to a top-level option
  • Support non-ascii characters in for/each title placeholders
  • Add pluggable benchmark provider API
Changed
  • Separate config resolution from the server creation
  • Serve warm modules to workers in one round-trip and enable the node compile cache
  • Make the Node compile cache opt-in and persist worker caches on teardown
  • Reuse compiled code across vm pool contexts and prewarm the module graph
Fixed
  • Disable server HMR before plugins read it in their config hook
  • Close the pool before the Vite servers
  • Remove listeners in the typecheck worker's off
  • Keep per-file isolation in vm pools when maxWorkers is 1
  • Prevent node builtins double prefix
  • Set non-zero exit code when teardown throws during close
  • Don't race the typechecker spawn grace period on windows
  • Preserve pre-transform request defaults in browser
  • Fix error stacktrace location off-by-one in browser
  • Inlined awaited import should not trigger syntax error after transform in browser
  • Mock window.print to avoid hanging in browser
  • Vm pools to respect cgroupsv2 memory limit in pool
   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub
View original