diff --git a/test/app-tests/server-config-test.ts b/test/app-tests/server-config-test.ts index 32e92de781..f16c135c37 100644 --- a/test/app-tests/server-config-test.ts +++ b/test/app-tests/server-config-test.ts @@ -21,6 +21,8 @@ import fetchMock from "fetch-mock-jest"; import { loadApp } from "../../src/vector/app"; import WebPlatform from "../../src/vector/platform/WebPlatform"; +jest.mock("matrix-react-sdk/src/audio/compat"); + /** The matrix versions our mock server claims to support */ const SERVER_SUPPORTED_MATRIX_VERSIONS = ["v1.1", "v1.5", "v1.6", "v1.8", "v1.9"]; diff --git a/test/app-tests/wrapper-test.tsx b/test/app-tests/wrapper-test.tsx index a2dbe6cf73..1c088e0601 100644 --- a/test/app-tests/wrapper-test.tsx +++ b/test/app-tests/wrapper-test.tsx @@ -28,6 +28,8 @@ import WebPlatform from "../../src/vector/platform/WebPlatform"; import { loadApp } from "../../src/vector/app"; import { waitForLoadingSpinner, waitForWelcomeComponent } from "../test-utils"; +jest.mock("matrix-react-sdk/src/audio/compat"); + /** The matrix versions our mock server claims to support */ const SERVER_SUPPORTED_MATRIX_VERSIONS = ["v1.1", "v1.5", "v1.6", "v1.8", "v1.9"];