mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
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
This commit is contained in:
18
vitest.config.mts
Normal file
18
vitest.config.mts
Normal file
@ -0,0 +1,18 @@
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user