MCPcopy Index your code
hub / github.com/coder/code-server / mockLogger

Function mockLogger

test/utils/helpers.ts:13–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 * suppress the output.
12 */
13export function mockLogger() {
14 jest.spyOn(logger, "debug").mockImplementation()
15 jest.spyOn(logger, "error").mockImplementation()
16 jest.spyOn(logger, "info").mockImplementation()
17 jest.spyOn(logger, "trace").mockImplementation()
18 jest.spyOn(logger, "warn").mockImplementation()
19
20 jest.spyOn(console, "log").mockImplementation()
21 jest.spyOn(console, "debug").mockImplementation()
22 jest.spyOn(console, "error").mockImplementation()
23 jest.spyOn(console, "info").mockImplementation()
24 jest.spyOn(console, "trace").mockImplementation()
25 jest.spyOn(console, "warn").mockImplementation()
26}
27
28/**
29 * Clean up directories left by a test. It is recommended to do this when a test

Callers 12

emitter.test.tsFile · 0.90
util.test.tsFile · 0.90
update.test.tsFile · 0.90
http.test.tsFile · 0.90
settings.test.tsFile · 0.90
app.test.tsFile · 0.90
constants.test.tsFile · 0.90
heart.test.tsFile · 0.90
proxy.test.tsFile · 0.90
vscode.test.tsFile · 0.90
login.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected