mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
* feat: add vitest for unit tests * chore: address pull request feedback * test: add unit test code quality workflow
24 lines
569 B
TypeScript
24 lines
569 B
TypeScript
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: {
|
|
include: ["**/*.spec.ts"],
|
|
poolOptions: {
|
|
threads: {
|
|
singleThread: false,
|
|
},
|
|
},
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["html", "json-summary", "json"],
|
|
all: true,
|
|
exclude: ["apps/nextjs/.next/"],
|
|
},
|
|
|
|
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],
|
|
},
|
|
});
|