mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-06-01 22:50:26 -04:00
34 lines
859 B
JavaScript
34 lines
859 B
JavaScript
import path from "path";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import AutoImport from "unplugin-auto-import/vite";
|
|
|
|
export default {
|
|
plugins: [
|
|
vue(),
|
|
AutoImport({
|
|
imports: ["vue", "@vueuse/core", "vue-i18n"],
|
|
dts: false,
|
|
}),
|
|
],
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
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,
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./app"),
|
|
"~": path.resolve(__dirname, "./app"),
|
|
"@@": path.resolve(__dirname, "."),
|
|
"~~": path.resolve(__dirname, "."),
|
|
},
|
|
},
|
|
};
|