This commit is contained in:
Hugh Nimmo-Smith
2024-12-11 09:54:05 +00:00
parent 4fee935b5a
commit d4aa28762c

View File

@@ -35,6 +35,8 @@ vitest.mock("../useAudioContext");
vitest.mock("./InCallView");
vitest.mock("../rtcSessionHelpers", async (importOriginal) => {
// TODO: perhaps there is a more elegant way to manage the type import here?
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
const orig = await importOriginal<typeof import("../rtcSessionHelpers")>();
vitest.spyOn(orig, "leaveRTCSession");
return orig;