Replace entire codebase with homarr-labs/homarr
This commit is contained in:
27
vitest.config.mts
Normal file
27
vitest.config.mts
Normal file
@@ -0,0 +1,27 @@
|
||||
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: {
|
||||
setupFiles: ["./vitest.setup.ts"],
|
||||
environment: "jsdom",
|
||||
include: ["**/*.spec.ts"],
|
||||
clearMocks: true,
|
||||
poolOptions: {
|
||||
threads: {
|
||||
singleThread: false,
|
||||
},
|
||||
},
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
reporter: ["html", "json-summary", "json"],
|
||||
all: true,
|
||||
exclude: (configDefaults.coverage.exclude ?? []).concat("apps/nextjs/.next/"),
|
||||
reportOnFailure: true,
|
||||
},
|
||||
|
||||
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user