Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

chore(deps): update test packages #157

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@nuxt/schema": "3.5.3",
"@release-it-plugins/workspaces": "3.2.0",
"@release-it/conventional-changelog": "5.1.1",
"@vitest/coverage-c8": "0.30.1",
"@vitest/coverage-v8": "0.32.2",
"conventional-changelog-conventionalcommits": "6.1.0",
"eslint": "8.43.0",
"eslint-config-prettier": "8.8.0",
Expand All @@ -34,7 +34,7 @@
"release-it": "15.11.0",
"typescript": "5.1.3",
"unbuild": "1.2.1",
"vitest": "0.30.1",
"vitest": "0.32.2",
"vue": "3.3.4",
"vue-tsc": "1.8.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"dependencies": {
"@nuxt/kit": "^3.2.0",
"@vitest/ui": "^0.30.0",
"@vitest/ui": "^0.32.2",
"defu": "^6.1.2",
"get-port-please": "^3.0.1",
"perfect-debounce": "^1.0.0",
Expand All @@ -58,6 +58,6 @@
"@nuxt/module-builder": "0.4.0",
"@nuxt/schema": "3.5.3",
"nuxt": "3.5.3",
"vitest": "^0.30.0"
"vitest": "0.32.2"
}
}
28 changes: 12 additions & 16 deletions packages/nuxt-vitest/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,18 @@ export async function getVitestConfigFromNuxt(
],
deps: {
...options.viteConfig.test?.deps,
inline:
options.viteConfig.test?.deps?.inline === true
? true
: [
// vite-node defaults
/\/node_modules\/(.*\/)?(nuxt|nuxt3)\//,
/^#/,
'vite',
// additional deps
'vue',
'vitest-environment-nuxt',
...(options.nuxt.options.build.transpile.filter(
r => typeof r === 'string' || r instanceof RegExp
) as Array<string | RegExp>),
...(options.viteConfig.test?.deps?.inline || []),
],
experimentalOptimizer: {},
inline: [
// vite-node defaults
/\/node_modules\/(.*\/)?(nuxt|nuxt3)\//,
/^#/,
// additional deps
'vitest-environment-nuxt',
...(options.nuxt.options.build.transpile.filter(
r => typeof r === 'string' || r instanceof RegExp
) as Array<string | RegExp>),
...(typeof options.viteConfig.test?.deps?.inline !== 'boolean' ? typeof options.viteConfig.test?.deps?.inline : []),
],
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest-environment-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"vue": "3.3.4"
},
"peerDependencies": {
"vitest": "^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0",
"vitest": "^0.24.5 || ^0.26.0 || ^0.27.0 || ^0.28.0 || ^0.29.0 || ^0.30.0 || ^0.32.2",
"vue": "^3.2.45",
"vue-router": "^4.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"nuxt": "3.5.3",
"nuxt-vitest": "0.8.5",
"typescript": "5.1.3",
"vitest": "0.30.1",
"vitest": "0.32.2",
"vitest-environment-nuxt": "0.8.5",
"vue-tsc": "1.8.1"
},
Expand Down