Nuxt Test Utils v4.1.0
nuxt/test-utils
Summary
Nuxt Test Utils v4.1.0 introduces enhancements such as customizable server log levels for e2e tests and improved HTML tag setup for app.root and app.teleports. Key fixes include a warning for e2e in Nuxt Vitest setup and ensuring the RouterLink stub works with pages disabled. The release also migrates to tsdown and pnpm v11, streamlining the build process.
Full release notes
4.1.0 is the next minor release.
👉 Changelog
🚀 Enhancements
- e2e: Silence server logs and allow customising log level (#1735)
- runtime: Improve app.root and app.teleports html tag setup (#1726)
🩹 Fixes
- e2e: Add warning message for e2e in nuxt vitest setup (#1691)
- runtime-utils: Ensure
RouterLinkstub works withpages: false(#1687) - config: Patch
ssr.resolve.conditionsto removeimport(#1732) - config: Browser setup in
defineVitestProject(#1724) - config: Inline config for useRuntimeConfig() composable (#1737)
- config: Nested browser-mode Nuxt Vitest projects with
viteEnvironmentApi(#1708)
📦 Build
- Migrate to tsdown (#1720)
🏡 Chore
- Drop pkg.pr.new nitro resolution (#1681)
- Migrate to pnpm v11 (#1701)
- Move
h3-nextto optional dependencies (#1733)
✅ Tests
- Add test for
autoImport: false(#1688)
🤖 CI
- Add agent-scan workflow to flag bot-authored PRs (13dd49cde)
- Migrate agentscan-action to v2 (08f8ee220)
❤️ Contributors
- Yoshihiro Yamaguchi (@yamachi4416)
- Peter Budai (@peterbud)
- Daniel Roe (@danielroe)
