diff --git a/src/trajectory/runtime.test.ts b/src/trajectory/runtime.test.ts index faebfd3b875..beec1a4c0b4 100644 --- a/src/trajectory/runtime.test.ts +++ b/src/trajectory/runtime.test.ts @@ -30,10 +30,10 @@ afterEach(() => { function expectTrajectoryRuntimeRecorder( recorder: ReturnType, ): TrajectoryRuntimeRecorder { - expect(recorder).toEqual(expect.objectContaining({ recordEvent: expect.any(Function) })); if (recorder === null) { throw new Error("Expected trajectory runtime recorder"); } + expect(typeof recorder.recordEvent).toBe("function"); return recorder; }