Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nuxtrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
setups.@nuxt/test-utils="4.1.0"
setups.@nuxt/test-utils="4.3.4"
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@nuxtjs/mdc": "0.23.1",
"better-sqlite3": "13.0.3",
"docus": "5.12.3",
"nuxt": "4.5.2",
"nuxt": "4.6.3",
"tailwindcss": "4.3.3"
}
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@nuxt/a11y": "1.0.0-alpha.1",
"@nuxt/fonts": "1.0.1",
"@nuxt/scripts": "1.3.5",
"@nuxt/test-utils": "4.1.0",
"@nuxt/test-utils": "4.3.4",
"@nuxtjs/color-mode": "4.0.1",
"@nuxtjs/html-validator": "2.1.0",
"@nuxtjs/i18n": "10.6.0",
Expand Down Expand Up @@ -92,7 +92,7 @@
"ipaddr.js": "2.5.0",
"marked": "18.0.9",
"module-replacements": "3.3.0",
"nuxt": "4.5.2",
"nuxt": "4.6.3",
"nuxt-og-image": "6.7.8",
"ofetch": "1.5.1",
"ohash": "2.0.12",
Expand All @@ -111,7 +111,7 @@
"virtua": "0.50.1",
"vite-plugin-pwa": "2.0.0",
"vite-plus": "catalog:vite-plus",
"vue": "3.5.42",
"vue": "3.5.44",
"vue-data-ui": "3.28.7",
"vue-router": "5.2.0"
},
Expand All @@ -138,7 +138,6 @@
"fast-check": "4.9.0",
"feed": "6.0.0",
"h3": "1.15.11",
"h3-next": "npm:h3@2.0.1-rc.26",
"knip": "6.44.0",
"markdown-it-anchor": "10.0.0",
"msw": "catalog:msw",
Expand Down
26 changes: 0 additions & 26 deletions patches/@nuxt__test-utils@4.1.0.patch

This file was deleted.

13 changes: 13 additions & 0 deletions patches/@nuxt__test-utils@4.3.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/module.mjs b/dist/module.mjs
index 75e0afb97ce266a5aaf77806d7fd61774b158657..8f8587d559987fec56a419c7ea5c0212bbce00b7 100644
--- a/dist/module.mjs
+++ b/dist/module.mjs
@@ -62,7 +62,7 @@ const createMockPlugin = (ctx) => createUnplugin(() => {
};
};
if (isImportDeclaration(node)) {
- if (node.source.value === "vitest" && !hasViImport) {
+ if ((node.source.value === "vitest" || node.source.value === "vite-plus/test") && !hasViImport) {
if (node.specifiers.find((i) => isImportSpecifier(i) && i.imported.type === "Identifier" && i.imported.name === "vi")) {
insertionPoint = node.end;
hasViImport = true;
4,014 changes: 2,035 additions & 1,979 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ strictPeerDependencies: true

minimumReleaseAgeExclude:
- '@iconify-json/simple-icons@1.2.93'
- 'nuxt@4.5.2'
- '@nuxt/kit@4.5.2'
- '@nuxt/nitro-server@4.5.2'
- '@nuxt/schema@4.5.2'
- '@nuxt/vite-builder@4.5.2'
- vue-data-ui@3.28.7

minimumReleaseAgeExcludePrune: true
Expand All @@ -58,12 +53,12 @@ overrides:
'@types/node': 24.13.3
nuxt-og-image: ^6.7.5
sharp: 0.35.3
vue: 3.5.42
vue: 3.5.44
typescript: npm:typescript-native-bridge@6.0.3-bridge.13.tsgo.7.0.2
vue-router: 5.2.0
markdown-exit: 1.1.0-beta.2
oxc-parser: 0.144.0
'@nuxtjs/i18n>@nuxt/kit': '4.5.2'
'@nuxtjs/i18n>@nuxt/kit': '4.6.3'
vite@*: catalog:vite-plus
vitest@*: catalog:vite-plus

Expand All @@ -74,7 +69,7 @@ packageExtensions:

patchedDependencies:
'@jsr/deno__doc@0.189.1': patches/@jsr__deno__doc@0.189.1.patch
'@nuxt/test-utils@4.1.0': patches/@nuxt__test-utils@4.1.0.patch
'@nuxt/test-utils@4.3.4': patches/@nuxt__test-utils@4.3.4.patch

savePrefix: ''

Expand Down
17 changes: 17 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,23 @@ export default defineConfig({
() =>
defineVitestProject({
plugins: [liveDollarFetch()],
// @nuxt/test-utils 4.3 enables dependency discovery for Vitest browser mode. Deps found
// only after tests start make Vite re-optimize mid-run, which reloads the browser and
// fails the suite on a cold cache (always the case in CI), so pre-bundle the ones found late.
optimizeDeps: {
include: [
'@atcute/bluesky-richtext-segmenter',
'@atcute/tid',
'@vue/compiler-dom',
'@vueuse/integrations/useFuse',
'axe-core',
'module-replacements',
'packumeta',
'vue-data-ui/composables',
'vue-data-ui/utils',
'vue-data-ui/vue-ui-pattern-seed',
],
},
resolve: {
alias: {
// Work around Vitest mixing browser and CommonJS Vue compiler builds.
Expand Down
Loading