24 lines
589 B
TypeScript
24 lines
589 B
TypeScript
|
|
import { defineConfig } from "vitest/config";
|
||
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
import path from "path";
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
test: {
|
||
|
|
globals: true,
|
||
|
|
environment: "jsdom",
|
||
|
|
include: ["tests/unit/**/*.{test,spec}.{ts,tsx}"],
|
||
|
|
exclude: ["tests/e2e/**"],
|
||
|
|
setupFiles: ["./tests/unit/setup.ts"],
|
||
|
|
coverage: {
|
||
|
|
provider: "v8",
|
||
|
|
reporter: ["text", "json", "html"],
|
||
|
|
include: ["src/**/*.{ts,tsx}"],
|
||
|
|
exclude: ["src/main.tsx"],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
resolve: {
|
||
|
|
alias: { "@": path.resolve(__dirname, "./src") },
|
||
|
|
},
|
||
|
|
});
|