| 1 | import * as Effect from "effect/Effect"; |
| 2 | import { MinimumLogLevel } from "effect/References"; |
| 3 | |
| 4 | // Postmaster Tools needs user OAuth credentials with the postmaster scope and a |
| 5 | // verified sending domain; the service account profile is rejected with |
| 6 | // InsufficientScopes. Set |
| 7 | // GCP_TEST_POSTMASTER_OAUTH=1 with such credentials. |
| 8 | export const runLifecycle = !!process.env.GCP_TEST_POSTMASTER_OAUTH; |
| 9 | |
| 10 | export const logLevel = Effect.provideService( |
| 11 | MinimumLogLevel, |
| 12 | process.env.DEBUG ? "Debug" : "Info", |
| 13 | ); |