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

@ -43,7 +43,7 @@ describe("event callbacks", () => {
// files
{},
);
expect(onChange.mock.lastCall[1].viewBackgroundColor).not.toBe(
expect(onChange.mock?.lastCall?.[1].viewBackgroundColor).not.toBe(
origBackgroundColor,
);
});

File diff suppressed because one or more lines are too long