MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / explicitTestDatabaseUrl

Function explicitTestDatabaseUrl

apps/api/tests/helpers/db.ts:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33let availabilityCache: boolean | null = null;
34
35const explicitTestDatabaseUrl = (): string | undefined =>
36 process.env.TEST_DATABASE_URL ??
37 (process.env.REQUIRE_INTEGRATION_DB === "true" || process.env.CI === "true"
38 ? process.env.DATABASE_URL
39 : undefined);
40
41export const isDbAvailable = async (): Promise<boolean> => {
42 if (availabilityCache !== null) {

Callers 1

isDbAvailableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected