24 lines
601 B
TypeScript
24 lines
601 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
include: ["src/**/*.test.ts"],
|
|
exclude: ["tests/**", "node_modules/**", "dist/**"],
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "html"],
|
|
include: ["src/stores/**/*.ts", "src/features/**/*.ts"],
|
|
},
|
|
},
|
|
});
|