excalidraw/vitest.config.mts
Aakansha Doshi 8963baf5ad
chore: upgrade to vite 5.x and vitest 1.x (#7407)
* chore: upgrade to vite 5.x and vitest 1.x

* fix coverage

* move to ESM for vite config

* use ESM for vitest
2023-12-07 15:30:08 +05:30

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,
},
},
},
});