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:
Aakansha Doshi 2023-12-07 15:30:08 +05:30 committed by GitHub
parent 557add5bf7
commit 8963baf5ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 510 additions and 297 deletions

18
vitest.config.mts Normal file
View 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,
},
},
},
});