You've already forked domainstack.io
mirror of
https://github.com/jakejarvis/domainstack.io.git
synced 2025-12-02 19:33:48 -05:00
22 lines
747 B
TypeScript
22 lines
747 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { coverageConfigDefaults, defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths(), react()],
|
|
test: {
|
|
setupFiles: ["./vitest.setup.ts"],
|
|
globals: true,
|
|
silent: "passed-only",
|
|
exclude: ["**/node_modules/**", "**/dist/**", "**/.next/**"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "html", "lcov"],
|
|
exclude: ["**/components/ui/**", ...coverageConfigDefaults.exclude],
|
|
},
|
|
// Use threads pool for compatibility with sandboxed environments
|
|
// File handle cleanup is managed by afterAll hooks in test files (e.g., PGlite.close())
|
|
pool: "threads",
|
|
},
|
|
});
|