8963baf5ad
* chore: upgrade to vite 5.x and vitest 1.x * fix coverage * move to ESM for vite config * use ESM for vitest
19 lines
380 B
TypeScript
19 lines
380 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
setupFiles: ["./src/setupTests.ts"],
|
|
globals: true,
|
|
environment: "jsdom",
|
|
coverage: {
|
|
reporter: ["text", "json-summary", "json", "html"],
|
|
thresholds: {
|
|
lines: 70,
|
|
branches: 70,
|
|
functions: 68,
|
|
statements: 70,
|
|
},
|
|
},
|
|
},
|
|
});
|