Skip to content

Commit

Permalink
feat: use internal implementation of nuxt-vitest (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 21, 2023
1 parent 604c6dd commit e34eadb
Show file tree
Hide file tree
Showing 68 changed files with 525 additions and 527 deletions.
3 changes: 3 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ export default defineBuildConfig({
{ input: 'src/runtime/', outDir: 'dist/runtime', format: 'esm' }
],
externals: [
"#app/entry",
"#build/root-component.mjs",
"#imports",
]
})
3 changes: 1 addition & 2 deletions examples/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"devDependencies": {
"@nuxt/test-utils": "latest",
"happy-dom": "^12.10.3",
"nuxt-vitest": "^0.11.5"
"happy-dom": "^12.10.3"
}
}
2 changes: 1 addition & 1 deletion examples/app/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineVitestConfig } from 'nuxt-vitest/config'
import { defineVitestConfig } from '@nuxt/test-utils/config'

export default defineVitestConfig({
// any custom vitest config you require
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
"local-pkg": "^0.5.0",
"magic-string": "^0.30.5",
"node-fetch-native": "^1.4.1",
"nuxt-vitest": "^0.11.5",
"ofetch": "^1.3.3",
"pathe": "^1.1.1",
"perfect-debounce": "^1.0.0",
"radix3": "^1.1.0",
"std-env": "^3.5.0",
"ufo": "^1.3.2",
"unenv": "^1.7.4",
"vitest-environment-nuxt": "^0.11.5"
"vitest-environment-nuxt": "0.12.0"
},
"devDependencies": {
"@jest/globals": "29.7.0",
"@nuxt/devtools": "^1.0.3",
"@nuxt/eslint-config": "0.2.0",
"@nuxt/module-builder": "0.5.2",
"@testing-library/vue": "^7.0.0",
Expand All @@ -75,7 +75,7 @@
"playwright-core": "1.40.0",
"rollup": "3.29.4",
"unbuild": "latest",
"unimport": "^3.5.0",
"unimport": "3.5.0",
"vite": "4.5.0",
"vitest": "0.33.0",
"vue-router": "^4.2.5"
Expand All @@ -85,6 +85,7 @@
"@testing-library/vue": "8.0.1",
"@vitejs/plugin-vue": "*",
"@vitejs/plugin-vue-jsx": "*",
"@vue/test-utils": "^2.4.2",
"h3": "*",
"happy-dom": "^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0",
"jsdom": "^22.0.0",
Expand Down Expand Up @@ -118,7 +119,8 @@
}
},
"resolutions": {
"@nuxt/test-utils": "workspace:*"
"@nuxt/test-utils": "workspace:*",
"vitest-environment-nuxt": "workspace:*"
},
"engines": {
"node": "^14.18.0 || >=16.10.0"
Expand Down
Loading

0 comments on commit e34eadb

Please sign in to comment.