MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / isTestEnv

Function isTestEnv

src/utils/logger.ts:67–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65let logFilePath: string | null = null;
66
67function isTestEnv(): boolean {
68 return (
69 process.env.VITEST === 'true' ||
70 process.env.NODE_ENV === 'test' ||
71 process.env.XCODEBUILDMCP_SILENCE_LOGS === 'true'
72 );
73}
74
75type SentryModule = typeof import('@sentry/node');
76type SentryLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';

Callers 2

loadSentrySyncFunction · 0.70
shouldLogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected