test: isolate diagnostic logger spy history (#2362)

This commit is contained in:
JATMN
2026-10-23 14:38:29 -07:00
committed by GitHub
parent 1bccad9c01
commit 81ef40e27b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ function writeFullFrame(output: Output, width: number, height: number): void {
beforeEach(() => {
logSpy = spyOn(debug, 'logForDebugging').mockImplementation(() => {})
logSpy.mockClear()
})
afterEach(() => {
+1
View File
@@ -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(() => {})