Skip to content

Commit

Permalink
Add path alias to vitest config and update dependencies
Browse files Browse the repository at this point in the history
- Added path alias for "src/" in `vitest.config.ts`
- Updated `@vitest/web-worker` and `vitest` dependencies in `package.json`
  • Loading branch information
tachibana-shin committed Aug 25, 2024
1 parent 50380b5 commit d4a2bed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@vitest/web-worker": "^0.30.1",
"@vitest/web-worker": "^2.0.5",
"autoprefixer": "^10.4.15",
"bumpp": "^9.2.1",
"chalk": "^5.3.0",
Expand All @@ -130,7 +130,7 @@
"vite-plugin-remove-console": "^2.1.1",
"vite-plugin-rewrite-all": "^1.0.1",
"vite-plugin-windicss": "^1.9.1",
"vitest": "~0.30.1",
"vitest": "^2.0.5",
"vue-tsc": "^2.0.28",
"windicss": "^3.5.6",
"workbox-build": "^6.5.0",
Expand Down
9 changes: 8 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { join } from "path"

import AutoImport from "unplugin-auto-import/vite"
import IconsResolver from "unplugin-icons/resolver"
import Icons from "unplugin-icons/vite"
Expand All @@ -10,6 +12,11 @@ export default defineConfig({
environment: "jsdom",
globals: true
},
resolve: {
alias: {
"src/": join(__dirname, "src/")
}
},
plugins: [
Icons(),
Components({
Expand All @@ -25,7 +32,7 @@ export default defineConfig({
"vue-router",
{
quasar: ["useQuasar"],
"vue-i18n": ["useI18n"],
"vue-i18n": ["useI18n"]
// "@vueuse/core": ["computedAsync"]
}
],
Expand Down

0 comments on commit d4a2bed

Please sign in to comment.