Skip to content

Commit e8f2f66

Browse files
committed
Misc
1 parent 60dbf38 commit e8f2f66

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/test/datascience/widgets/rendererUtils.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,19 @@ function hijackLogging() {
194194
category: channel
195195
});
196196
};
197+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
198+
globalThis.console = {} as any;
197199
['log', 'error', 'warn'].forEach((channel) => {
198200
// eslint-disable-next-line @typescript-eslint/no-explicit-any
199-
const originalConsoleLogger = (console as any)[channel] as unknown as Function;
201+
// const originalConsoleLogger = (console as any)[channel] as unknown as Function;
200202
// eslint-disable-next-line @typescript-eslint/no-explicit-any
201203
(console as any)[channel] = (...args: any[]) => {
202204
logMessage('log', args);
203-
originalConsoleLogger(...args);
205+
// originalConsoleLogger(...args);
206+
};
207+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
208+
(globalThis.console as any)[channel] = (...args: any[]) => {
209+
logMessage('log', args);
204210
};
205211
});
206212
}

0 commit comments

Comments
 (0)