2024-02-04 09:47:23 +01:00
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
|
import { configDefaults, defineConfig } from "vitest/config";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react(), tsconfigPaths()],
|
|
|
|
|
test: {
|
2024-02-10 19:00:08 +01:00
|
|
|
setupFiles: ["./vitest.setup.ts"],
|
|
|
|
|
environment: "jsdom",
|
2024-02-04 09:47:23 +01:00
|
|
|
include: ["**/*.spec.ts"],
|
2024-10-05 17:03:32 +02:00
|
|
|
clearMocks: true,
|
2024-02-04 09:47:23 +01:00
|
|
|
poolOptions: {
|
|
|
|
|
threads: {
|
|
|
|
|
singleThread: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
coverage: {
|
|
|
|
|
provider: "v8",
|
|
|
|
|
reporter: ["html", "json-summary", "json"],
|
|
|
|
|
all: true,
|
2024-11-03 00:11:27 +01:00
|
|
|
exclude: (configDefaults.coverage.exclude ?? []).concat("apps/nextjs/.next/"),
|
2024-10-05 17:03:32 +02:00
|
|
|
reportOnFailure: true,
|
2024-02-04 09:47:23 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],
|
|
|
|
|
},
|
|
|
|
|
});
|