mirror of
https://github.com/Gitlawb/openclaude.git
synced 2026-11-06 20:58:14 -04:00
test: isolate diagnostic logger spy history (#2362)
This commit is contained in:
@@ -71,6 +71,7 @@ function writeFullFrame(output: Output, width: number, height: number): void {
|
||||
|
||||
beforeEach(() => {
|
||||
logSpy = spyOn(debug, 'logForDebugging').mockImplementation(() => {})
|
||||
logSpy.mockClear()
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
@@ -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(() => {})
|
||||
|
||||
Reference in New Issue
Block a user