| 1 | import * as Effect from "effect/Effect"; |
| 2 | import { MinimumLogLevel } from "effect/References"; |
| 3 | |
| 4 | // Cloud Search needs Workspace-admin credentials with a Cloud Search license |
| 5 | // (others get InsufficientScopes); set GCP_TEST_CLOUDSEARCH_ADMIN=1 when the |
| 6 | // profile credentials have that access. |
| 7 | export const runLifecycle = !!process.env.GCP_TEST_CLOUDSEARCH_ADMIN; |
| 8 | |
| 9 | export const logLevel = Effect.provideService( |
| 10 | MinimumLogLevel, |
| 11 | process.env.DEBUG ? "Debug" : "Info", |
| 12 | ); |