chore(deps): update devdependency @nuxt/test-utils to v4 - #79
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update devdependency @nuxt/test-utils to v4#79renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
2 times, most recently
from
February 17, 2026 17:41
c224136 to
651f32c
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
from
March 5, 2026 17:05
651f32c to
7458e3c
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
from
March 13, 2026 12:33
7458e3c to
2fa932a
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
2 times, most recently
from
April 8, 2026 10:59
aad8783 to
885c0a9
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
from
April 9, 2026 12:11
885c0a9 to
858f89f
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
2 times, most recently
from
April 29, 2026 17:35
0feb68a to
eea40fb
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
2 times, most recently
from
May 18, 2026 13:29
9e29c73 to
4399b15
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
2 times, most recently
from
June 2, 2026 00:26
b6c81e7 to
2e9cde3
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
from
June 11, 2026 22:08
2e9cde3 to
22fd2bb
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
2 times, most recently
from
July 17, 2026 03:33
be57db2 to
aa76153
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
3 times, most recently
from
July 27, 2026 16:27
37a3bec to
5f24173
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
from
July 30, 2026 19:46
5f24173 to
93b2a1d
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
from
August 12, 2026 02:49
93b2a1d to
01f4181
Compare
renovate
Bot
force-pushed
the
renovate/nuxt-test-utils-4.x
branch
from
August 14, 2026 21:49
01f4181 to
6918252
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.1.2→^4.1.0Release Notes
nuxt/test-utils (@nuxt/test-utils)
v4.1.0Compare Source
👉 Changelog
compare changes
🚀 Enhancements
🩹 Fixes
RouterLinkstub works withpages: false(#1687)ssr.resolve.conditionsto removeimport(#1732)defineVitestProject(#1724)viteEnvironmentApi(#1708)📦 Build
🏡 Chore
h3-nextto optional dependencies (#1733)✅ Tests
autoImport: false(#1688)🤖 CI
❤️ Contributors
v4.0.3Compare Source
👉 Changelog
compare changes
🩹 Fixes
compilerOptionsconditionally (#1659)isActiveslot props (#1640)startServer(#1675)🏡 Chore
❤️ Contributors
v4.0.2Compare Source
👉 Changelog
compare changes
🩹 Fixes
🤖 CI
❤️ Contributors
v4.0.1Compare Source
👉 Changelog
compare changes
🩹 Fixes
mockNuxtImporttypes when using string target (#1592)defineConfigfromvite(1aa5e8748)ResourceLoaderremoval in jsdom v28 (#1611)vitest/environmentsimport warning (#1627)🏡 Chore
vitest-environment-nuxtversions (f5ec72127)pkg-pr-newprereleasevitest-environment-nuxt(#1601)✅ Tests
🤖 CI
pkg-pr-newprerelease (#1598)❤️ Contributors
v4.0.0Compare Source
👀 Highlights
We're releasing Nuxt Test Utils v4, with support for Vitest v4. 🚀
Better mocking support
The biggest improvement in this release is how mocking works. Nuxt initialization has been moved from
setupFilesto thebeforeAllhook (#1516), which meansvi.mockandmockNuxtImportcalls now take effect before Nuxt starts. This fixes a long-standing issue where mocks for composables used in middleware or plugins wouldn't apply reliably (#750, #836, #1496).On top of that,
mockNuxtImportnow passes the original implementation to the factory function (#1552), making partial mocking much more natural:registerEndpointimprovementsregisterEndpointnow works correctly with query parameters in URLs (#1560), and endpoints registered in setup files are no longer lost when modules reset (#1549).🚧 Migration
@nuxt/test-utilsv4 contains a few breaking changes, almost all related to requiring at least vitest v4 as a peer dependency (if you are using vitest). It replacesvite-nodewith Vite's native Module Runner and simplifies pool configuration.This will mean improvements for test performance and mocking, but does require some changes to your test code.
Update your dependencies
Update
vitestand its companion packages together:{ "devDependencies": { - "@nuxt/test-utils": "^3.x", - "vitest": "^3.x", - "@vitest/coverage-v8": "^3.x" + "@nuxt/test-utils": "^4.0", + "vitest": "^4.0", + "@vitest/coverage-v8": "^4.0" } }Peer dependencies
We've tightened peer dependency ranges. You may need to update some of these:
vitest^3.2.0^4.0.2happy-dom*>=20.0.11jsdom*>=27.4.0@jest/globals^29.5.0 || >=30.0.0>=30.0.0@cucumber/cucumber^10.3.1 || >=11.0.0>=11.0.0@testing-library/vue^7.0.0 || ^8.0.1^8.0.1Later environment setup
This is the change that might require most change in your tests. Because we've moved the nuxt environment setup into
beforeAll, this means composables called at the top level of adescribeblock will fail with[nuxt] instance unavailable.This applies to
useRouter(),useNuxtApp(),useRoute(), and any other Nuxt composable or auto-import.Stricter mock exports
If you use
vi.mockwith a factory function, accessing an export that the factory doesn't return will now throw an error instead of silently returningundefined.Other changes
For the full list, see the vitest v4 migration guide.
👉 Changelog
compare changes
🚀 Enhancements
mockNuxtImportfactory (#1552)beforeAllhook (#1516)🩹 Fixes
registerEndpointwith query params (#1560)nextTickimport (#1563)💅 Refactors
@nuxt/devtools-kitfor devtools hooks (426e0b537)📖 Documentation
🏡 Chore
app-vitestfollow advised setup guidelines (#1542).nuxtrc(b4021dee4)✅ Tests
beforeAllhook (#1516)❤️ Contributors
v3.23.0Compare Source
👉 Changelog
compare changes
🚀 Enhancements
🩹 Fixes
$fetchis not typed asany(1f4754ea9)🏡 Chore
console.log(aef693340)✅ Tests
🤖 CI
❤️ Contributors
v3.22.0Compare Source
👉 Changelog
compare changes
🚀 Enhancements
vitestin separate process (#1524)NuxtPageexists (#1530)🔥 Performance
🩹 Fixes
.syncmethod for syncing route (1148c3cf1)server.depsrather thandeps(2b3c86921)sync()in initial setup (ec555192c)devtools:beforehook instead of direct config check (#1532)rootDir(#1531)💅 Refactors
addCleanup(86b4998bb)📖 Documentation
🏡 Chore
nuxtcli command in preference tonuxi(838ed8b6a)@vitest/uito example (ffaccd8a1)package.jsonnames (417102718)✅ Tests
defaultLocalein i18n test (059988fc3)🤖 CI
knipon pull requests (a94098671)❤️ Contributors
v3.21.0Compare Source
👉 Changelog
compare changes
🚀 Enhancements
onceoption inregisterEndpoint(#1475)🩹 Fixes
$fetch.create(#1471)globalPropertiesin mount + render helpers (#1476)@nuxt/kitv3 for bridge support (#1498)🏡 Chore
globbydependency (eba19d16b)@nuxt/kitfrom peer dependencies (b80ca5ea8)@nuxt/kitas peer dep (5c126e1af)🤖 CI
❤️ Contributors
v3.20.1Compare Source
v3.19.2Compare Source
👉 Changelog
compare changes
🩹 Fixes
.nuxt.extension (#1311)@nuxt/schemadependeny (fa3a99b4)vitest>= v3.2 (#1344)viteversion to merge config (#1345)🏡 Chore
nuxtovernuxi(#1310)engines.nodecalculation (2f74359b)✅ Tests
🤖 CI
knip(819aeacc)❤️ Contributors
v3.19.1Compare Source
👉 Changelog
compare changes
🩹 Fixes
defineConfigfrom vite (467886ea)🏡 Chore
@nuxt/devtoolsupgrade (3ae47b43)❤️ Contributors
v3.19.0Compare Source
👉 Changelog
compare changes
🚀 Enhancements
defineVitestProject(#1258)🩹 Fixes
UserConfigrather thanInlineConfigfromvite(e2a1598b)💅 Refactors
core->e2einternally (a81c4498)✅ Tests
environment: 'nuxt'for browser testing example (96769e55)❤️ Contributors
v3.18.0Compare Source
compare changes
🚀 Enhancements
🩹 Fixes
app.baseURLin manifest path (#1213)WrapperComponentdefault slot in function (#1244)💅 Refactors
setuphook tobeforeAllfor clarity (#1221)📖 Documentation
✅ Tests
tinyglobby(6f16c6dd)❤️ Contributors
v3.17.2Compare Source
👉 Changelog
compare changes
🩹 Fixes
🏡 Chore
❤️ Contributors
v3.17.1Compare Source
👉 Changelog
compare changes
🩹 Fixes
❤️ Contributors
v3.17.0Compare Source
👉 Changelog
compare changes
🚀 Enhancements
✅ Tests
❤️ Contributors
v3.16.0Compare Source
👀 Highlights
You'll still see a warning from vitest:
You can ignore this for the moment. I expect we will resolve this in the next major (which will drop support for vitest < 3).
👉 Changelog
compare changes
🚀 Enhancements
teardownTimeoutoption to set timeout forafterAllhook (af2ddf29)🩹 Fixes
buildId(3f8599e6)mountSuspended(#1081)mountSuspended(#1078)defufor merging (#1089)$attrsin component render context (#1108)vi.hoistedis injected afterviimport (#1128)wrapper.elementfrommountSuspended(#1110)📦 Build
typesVersionsfor node10 declarations (f19cee64)🏡 Chore
🤖 CI
❤️ Contributors
v3.15.4Compare Source
compare changes
🩹 Fixes
tinyexecto resolve nuxi binary (7df895e3)✅ Tests
❤️ Contributors
v3.15.3Compare Source
compare changes
🩹 Fixes
node:pathto resolvedistdirectory (#1054)❤️ Contributors
v3.15.2Compare Source
compare changes
🩹 Fixes
setIntervalfrom the presets (#1035)🏡 Chore
✅ Tests
❤️ Contributors
v3.15.1Compare Source
compare changes
🩹 Fixes
reactive(f05c0faf3)❤️ Contributors
v3.15.0Compare Source
compare changes
🚀 Enhancements
NuxtPageplaywright type (#1015)🩹 Fixes
defineModelinmountSuspended(#1011)props(#1025)javaScriptEnabled: false(ca06f337)distDirstring (094acb29)dirnamewhen calculatingdistDir(56122b74)nuxtConfig.nitro.output.dirwithbuild: false(#936)🏡 Chore
knipand reduce peer dependencies (4e10bd26)installed-checkto keepengines.nodein sync (ebcc5eff)✅ Tests
mountSuspended+ #imports (4f3f5032)🤖 CI
❤️ Contributors
v3.14.4Compare Source
compare changes
🩹 Fixes
NODE_ENVwhen running built server (#969)❤️ Contributors
v3.14.3Compare Source
compare changes
🩹 Fixes
directivestomountSuspended(#960)directivestorenderSuspended(cf1b48ff)🏡 Chore
✅ Tests
❤️ Contributors
v3.14.2Compare Source
compare changes
🔥 Performance
tinyexecto run commands (#939)🩹 Fixes
📖 Documentation
🏡 Chore
vitest-environment-nuxt(e30c044cf)@nuxtjs/i18nseparately (3d8955d36)compatibilityDatein fixtures (7723f969c)tinyexecstdout (2b50cfee0)❤️ Contributors
v3.14.1Compare Source
compare changes
🩹 Fixes
compatibilityDate(8e01e3f7)vitestplugins (#911)📖 Documentation
🏡 Chore
❤️ Contributors
v3.14.0Compare Source
compare changes
🚀 Enhancements
renderSuspended(#852)setup(#903)setupruns (#812)🩹 Fixes
#build/import until nuxt v3.12 release (66b23ae6)setPropsto replace an array (#877)🏡 Chore
✅ Tests
❤️ Contributors
v3.13.1Compare Source
compare changes
🩹 Fixes
execato v8 for now (fef8b062)buildIdtotestmanually (25e081e4)appIdfallback aftertryUseNuxtApp(#849)🏡 Chore
🤖 CI
❤️ Contributors
v3.13.0Compare Source
compare changes
🚀 Enhancements
$fetch(b21d9a54)execato v9 (#843)🔥 Performance
🩹 Fixes
fetchandmockLogger(eb40a6a6)startServer(1b182505)mockLogger(21aa7a2f)renderSuspendedandmountSuspended(1636cede)$fetchinference to unbreak build (dd295d39)setupStatereturn (ab7fd457)effectScopeinrenderSuspended(#820)$fetchusing globalThis instead (b1269edb)buildIdtonuxt-appfor compatibility with nuxt v3.12+ (a00b2c1f)tryUseNuxtApprather thanbuildIdoverride (726e0a2d)🏡 Chore
any(3e3bc306)no-explicit-anyrule (28385546)app-vitest-full(882c144e)@nuxt/devtoolsupgrades for now (54f654d6)❤️ Contributors
v3.12.1Compare Source
compare changes
🩹 Fixes
playwright.d.ts(#797)❤️ Contributors
v3.12.0Compare Source
compare changes
🚀 Enhancements
'route'/'hydration'options forpage.goto()(#739)playwrightrunner (#776)🩹 Fixes
🏡 Chore
🤖 CI
changelogencommand (e3368daf)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.