Nuxt Test Utils v4.0.0 has been released, requiring Vitest v4 as a peer dependency. The most significant change moves Nuxt's test environment setup from setupFiles to the beforeAll hook, fixing long-standing issues where module-level mocks were silently ignored. This introduces a migration cost: composables called at the top level of describe blocks will now throw 'instance unavailable' errors and must be moved inside beforeAll. The mockNuxtImport function now receives the original implementation in its factory, enabling cleaner partial mocking. Two fixes address registerEndpoint state loss between tests and query parameter matching. Vitest v4 also enforces stricter mock exports, throwing instead of returning undefined for unspecified exports. Peer dependency minimums have been raised for happy-dom, jsdom, @jest/globals, and @cucumber/cucumber.
Sort: