()
| 163 | } |
| 164 | |
| 165 | function isSentrySelfTestEnabled(): boolean { |
| 166 | const raw = process.env[SENTRY_SELF_TEST_ENV_VAR]?.trim().toLowerCase(); |
| 167 | return raw === '1' || raw === 'true' || raw === 'yes'; |
| 168 | } |
| 169 | function emitSentrySelfTest(mode: SentryRuntimeMode | undefined): void { |
| 170 | if (!isSentrySelfTestEnabled() || selfTestEmitted) { |
| 171 | return; |
no outgoing calls
no test coverage detected