MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / setEnvDefaults

Function setEnvDefaults

test/global-setup.ts:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12// globalSetup runs in the parent process before vitest workers start,
13// so vitest's `env` config is not applied — set defaults explicitly.
14function setEnvDefaults() {
15 process.env.DATABASE_URL ??=
16 'postgresql://postgres:postgres@localhost:5432/postgres?schema=public';
17 process.env.CLICKHOUSE_URL ??= 'http://localhost:8123/openpanel';
18}
19
20export async function setup() {
21 setEnvDefaults();

Callers 2

setupFunction · 0.85
teardownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected