mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04: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:
parent
557add5bf7
commit
8963baf5ad
7 changed files with 510 additions and 297 deletions
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue