mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-02-18 13:29:36 +01:00

chore: Add lcov coverage output to vitest so VSCode coverage gutters extension works Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
19 lines
388 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
});
|