diff --git a/extensions/matrix/src/matrix/sdk.test.ts b/extensions/matrix/src/matrix/sdk.test.ts index 8026f7ffc82..01e088972a4 100644 --- a/extensions/matrix/src/matrix/sdk.test.ts +++ b/extensions/matrix/src/matrix/sdk.test.ts @@ -1623,9 +1623,12 @@ describe("MatrixClient crypto bootstrapping", () => { debug?: (...args: unknown[]) => void; getChild?: (namespace: string) => unknown; } | null; - expect(logger).not.toBeNull(); - expect(logger?.debug).toBeTypeOf("function"); - expect(logger?.getChild).toBeTypeOf("function"); + expect(logger).toEqual( + expect.objectContaining({ + debug: expect.any(Function), + getChild: expect.any(Function), + }), + ); }); it("passes a custom sync filter to matrix-js-sdk startup", async () => {