Move more element-web tests over to vitest (#33845)

* Move more element-web tests over to vitest

Switches default env to happy-dom as SdkConfig needs a DOM and is part of the setupTests given a lot of code relies on it

* Restore jest variant of editor mock file for tests not yet moved over

* Migrate batch of tests tro vitest

* Iterate

* Migrate another test

* Simplify

* Iterate

* Iterate

* Fix lockfile

* Deduplicate

* Iterate
This commit is contained in:
Michael Telatynski
2026-07-06 17:42:24 +00:00
committed by GitHub
parent 3da74a98e3
commit 08419cf0cf
20 changed files with 223 additions and 124 deletions
+1
View File
@@ -25,5 +25,6 @@ if (globalThis.window === undefined) {
// things try to access it before the beforeEach blocks run)
addEventListener: vi.fn(),
location: locationStub,
setTimeout: globalThis.setTimeout,
});
}