diff --git a/bun.lockb b/bun.lockb index 8771454f..420b4997 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 26dfe8a2..4618b077 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/vitest.config.ts b/vitest.config.ts index bfe9ab31..61190b16 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -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" @@ -10,6 +12,11 @@ export default defineConfig({ environment: "jsdom", globals: true }, + resolve: { + alias: { + "src/": join(__dirname, "src/") + } + }, plugins: [ Icons(), Components({ @@ -25,7 +32,7 @@ export default defineConfig({ "vue-router", { quasar: ["useQuasar"], - "vue-i18n": ["useI18n"], + "vue-i18n": ["useI18n"] // "@vueuse/core": ["computedAsync"] } ],