Files
nextjs-template/vitest.config.ts
T

23 lines
509 B
TypeScript
Raw Normal View History

import { defineConfig } from "vitest/config";
import path from "node:path";
export default defineConfig({
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./vitest.setup.ts"],
include: ["**/*.{test,spec}.{ts,tsx}"],
exclude: ["node_modules/**", ".next/**", "e2e/**", "playwright/**"],
css: false,
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "."),
},
},
});