MCPcopy Create free account
hub / github.com/bytebase/bytebase / saveTestEnv

Function saveTestEnv

frontend/tests/e2e/framework/env.ts:18–22  ·  view source on GitHub ↗
(env: TestEnv)

Source from the content-addressed store, hash-verified

16}
17
18export function saveTestEnv(env: TestEnv): void {
19 const serialized = { ...env } as Record<string, unknown>;
20 delete serialized["api"];
21 fs.writeFileSync(ENV_FILE, JSON.stringify(serialized, null, 2));
22}
23
24export function loadTestEnv(): TestEnv & { api: BytebaseApiClient } {
25 if (!fs.existsSync(ENV_FILE)) {

Callers 2

setup-project.tsFile · 0.90
globalSetupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected