diff --git a/src/ink/output.test.ts b/src/ink/output.test.ts index ad4a397b1..b060dbe22 100644 --- a/src/ink/output.test.ts +++ b/src/ink/output.test.ts @@ -71,6 +71,7 @@ function writeFullFrame(output: Output, width: number, height: number): void { beforeEach(() => { logSpy = spyOn(debug, 'logForDebugging').mockImplementation(() => {}) + logSpy.mockClear() }) afterEach(() => { diff --git a/src/utils/context.test.ts b/src/utils/context.test.ts index d86406c94..343278fab 100644 --- a/src/utils/context.test.ts +++ b/src/utils/context.test.ts @@ -575,6 +575,7 @@ test('unknown openai-compatible model fallback logs one debug warning and no con actualDebugModule, 'logForDebugging', ).mockImplementation((_message, _options) => {}) + logForDebugging.mockClear() const originalConsoleError = console.error const consoleError = mock(() => {})