Nuxt Test Utils v4.2.0

nuxt/test-utils
Share
Summary
Nuxt Test Utils v4.2.0 introduces a new render helper for Vitest browser mode and adds a spy option to the mount and render helpers. It also includes several important fixes, such as improved handling of non-cloneable values in config and better support for Nuxt v5 with the Nitro Vite environment.

Full release notes

v4.2.0 is the next minor release.

👉 Changelog

compare changes

🚀 Enhancements

  • browser: add render helper for vitest browser mode (#1725)
  • runtime-utils: add spy option to mount + render helpers (#1762)

🩹 Fixes

  • runtime-utils: mockNuxtImport sourcemap mapped position (#1787)
  • config: tolerate non-cloneable values when cloning config (#1771)
  • e2e: honour setupTimeout in playwright + surface server logs (#1785)
  • e2e: add explanation if server exited before being ready (#1761)
  • module: handle string presets in auto-imports (#1784)
  • config: don't run includeSource in both projects in defineVitestConfig (#1763)
  • e2e: use taskkill to kill processes on windows (#1760)
  • config: support nuxt v5 with nitro vite environment (#1758)

🏡 Chore

  • avoid missing file extension warning in test/examples (#1775)
  • exempt first-party packages from pnpm minimumReleaseAge (#1774)
  • replace latest ranges with caret ranges (#1773)
  • move vite environment api tests to example tests (#1755)

✅ Tests

  • re-enable bun browser e2e on windows (#1791)

🤖 CI

  • migrate to uppt for release workflow (#1792)

🎉 New Contributors

  • Alexander Lichter (@TheAlexLichter)
  • Jonazzzz (@Bombastickj)

❤️ Contributors

  • Yoshihiro Yamaguchi (@yamachi4416)
  • Daniel Roe (@danielroe)
  • Alexander Lichter (@TheAlexLichter)
  • Jonazzzz (@Bombastickj)

Latest Nuxt Test Utils releases

All releases