2022-10-22 11:51:07 -08:00
|
|
|
import path from "path";
|
2026-04-11 08:26:14 -05:00
|
|
|
import vue from "@vitejs/plugin-vue";
|
2026-05-31 10:41:52 -05:00
|
|
|
import AutoImport from "unplugin-auto-import/vite";
|
2022-10-22 11:51:07 -08:00
|
|
|
|
|
|
|
|
export default {
|
2026-05-31 10:41:52 -05:00
|
|
|
plugins: [
|
|
|
|
|
vue(),
|
|
|
|
|
AutoImport({
|
|
|
|
|
imports: ["vue", "@vueuse/core", "vue-i18n"],
|
|
|
|
|
dts: false,
|
|
|
|
|
}),
|
|
|
|
|
],
|
2022-10-22 11:51:07 -08:00
|
|
|
test: {
|
|
|
|
|
globals: true,
|
|
|
|
|
environment: "jsdom",
|
2026-05-31 10:41:52 -05:00
|
|
|
setupFiles: ["./app/tests/setup.ts"],
|
|
|
|
|
coverage: {
|
|
|
|
|
provider: "v8",
|
|
|
|
|
include: ["app/{lib,components,composables,layouts,pages}/**/*.{ts,tsx,vue}"],
|
|
|
|
|
exclude: ["**/*.test.*", "node_modules/**", "dist/**", "coverage/**", "**/__tests__/**"],
|
|
|
|
|
reporter: ["html", "text-summary"],
|
|
|
|
|
all: true,
|
|
|
|
|
},
|
2022-10-22 11:51:07 -08:00
|
|
|
},
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2026-04-08 17:25:41 +02:00
|
|
|
"@": path.resolve(__dirname, "./app"),
|
|
|
|
|
"~": path.resolve(__dirname, "./app"),
|
|
|
|
|
"@@": path.resolve(__dirname, "."),
|
|
|
|
|
"~~": path.resolve(__dirname, "."),
|
2022-10-22 11:51:07 -08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|