Migrate more tests to vitest (#34355)

* Remove doubled-up I18n Provider. ModalManager already provides this.

* Reconfigure svgr into a vite-friendly `?react` resource query

* Move InviteDialog test to vitest

* Move RoomHeader tests to Vitest

* Share serializer between Jest & Vitest

* Attempt to stabilise InviteDialog test

* Fix async leaks

* Migrate more tests to vitest

* Migrate MatrixChat test to vitest

* Deflake

* Iterate

* Iterate

* Iterate
This commit is contained in:
Michael Telatynski
2026-07-30 09:11:29 +00:00
committed by GitHub
parent 42253a7ae5
commit 27906ce6e7
18 changed files with 471 additions and 393 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import { type ActionPayload } from "../../src/dispatcher/payloads";
import defaultDispatcher from "../../src/dispatcher/dispatcher";
import { type DispatcherAction } from "../../src/dispatcher/actions";
import Modal from "../../src/Modal";
import { vi } from "../setup/adapter.ts";
import { vi, beforeEach, afterEach } from "../setup/adapter.ts";
export const emitPromise = (e: EventEmitter, k: string | symbol) => new Promise((r) => e.once(k, r));