interface LitmusFixture { url: string; username: string; pat: string; } async function main(): Promise { const baseUrl = process.env.DAB_LITMUS_BASE_URL ?? `http://dab.localhost:${process.env.DAB_LITMUS_PORT ?? "8787"}`; const response = await fetch(new URL("/__dab_test/fixtures/litmus", baseUrl), { method: "POST" }); if (response.status !== 200) { throw new Error(`fixture route returned ${response.status}: ${await response.text()}`); } const fixture = (await response.json()) as Partial; if (!fixture.url || !fixture.username || !fixture.pat) { throw new Error(`fixture route returned invalid payload: ${JSON.stringify(fixture)}`); } console.log(`LITMUS_URL=${fixture.url}`); console.log(`LITMUS_USERNAME=${fixture.username}`); console.log(`LITMUS_PAT=${fixture.pat}`); } main().catch((error) => { console.error(error instanceof Error ? error.message : String(error)); process.exit(1); });