MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / consoleExceptInTest

Function consoleExceptInTest

apps/web/src/lib/utils.server.ts:6–7  ·  view source on GitHub ↗
(kind: 'debug' | 'info' | 'log' | 'warn' | 'error')

Source from the content-addressed store, hash-verified

4
5const isInTestMode = IS_IN_AUTOMATED_TEST;
6const consoleExceptInTest = (kind: 'debug' | 'info' | 'log' | 'warn' | 'error') =>
7 (isInTestMode ? () => {} : console[kind]) satisfies typeof console.log;
8
9export const logExceptInTest = consoleExceptInTest('log');
10

Callers 2

utils.server.tsFile · 0.70
sentryLoggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected