Change8

v4.0.4

📦 vitestView on GitHub →
🐛 7 fixes🔧 6 symbols

Summary

Vitest v4.0.4 includes several bug fixes across browser, mocker, pool, spy, and worker modules, plus a performance optimization in utils.

🐛 Bug Fixes

  • Fixed typo in the browser module.
  • Published a missing context file for webdriverio in the browser module.
  • Added support for mocking builtins without the `node:` prefix in the mocker module.
  • Fixed the runner's error listener that caused `MaxListenersExceededWarning` in the pool module.
  • Captured workers `stdio` output to the logger in the pool module.
  • Allowed classes to be used with the `vi.mocked` utility in the spy module.
  • Fixed an RPC listener leak when `isolate: false` in the worker module.

🔧 Affected Symbols

browsermockerpoolspyworkerutils