build: upgrade vite to 5.4.x, vitest to 2.x and related vite packages (#8459)

* build: upgrade vite to 5.x, vitest to 2.x and related vite packages

* upgrade vitest-ui and coverage

* pass empty set to fix type error and update snap

* set ignoreEmptyLines to false

* update threshold

* update coverage threshold

* downgrade vite-plugin-pwa as its better to push separately with testing

* add package resolutions for strip-ansi, string-width and wrap-ansi

* disable pwa

* only add resolution for strip-ansi
This commit is contained in:
Aakansha Doshi 2024-09-05 18:35:36 +05:30 committed by GitHub
parent 21fff26d31
commit 51ea184938
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 893 additions and 388 deletions

View file

@ -76,7 +76,7 @@ vi.mock(
const url = this.urls[0];
if (url.protocol !== "file:") {
return super.getContent();
return super.getContent(new Set());
}
// read local assets directly, without running a server