-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
46 lines (45 loc) · 1.02 KB
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import path from "node:path";
import { defineConfig } from "vitest/config";
import vue from "@vitejs/plugin-vue";
import AutoImport from "unplugin-auto-import/vite";
export default defineConfig({
plugins: [
vue(),
AutoImport({
imports: [
"vue",
"@vueuse/core",
{
"@pinia/nuxt/node_modules/pinia": [
"acceptHMRUpdate",
"createPinia",
"defineStore",
"getActivePinia",
"mapActions",
"mapGetters",
"mapState",
"mapStores",
"mapWritableState",
"setActivePinia",
"setMapStoreSuffix",
"storeToRefs",
],
},
],
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./"),
"~": path.resolve(__dirname, "./"),
"#imports": path.resolve(__dirname, "./.nuxt/imports.d.ts"),
},
},
test: {
globals: true,
environment: "jsdom",
deps: {
inline: [/@nuxt\/test-utils-edge/],
},
},
});