1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00
excalidraw/vitest.config.mts
Márk Tolmács f0d25e34c3
chore: Add lcov coverage output to vitest (#7987)
chore: Add lcov coverage output to vitest so VSCode coverage gutters extension works

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-05-06 17:35:23 +02:00

19 lines
388 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
setupFiles: ["./setupTests.ts"],
globals: true,
environment: "jsdom",
coverage: {
reporter: ["text", "json-summary", "json", "html", "lcovonly"],
thresholds: {
lines: 70,
branches: 70,
functions: 68,
statements: 70,
},
},
},
});