also looking at this
test: retain bounded browser launch evidence on failure
#70
18 files
+620
-23
| @@ -1,4 +1,4 @@ | ||
| 1 | import { beforeAll, describe, expect, test } from 'bun:test' | |
| 1 | import { describe, expect, test } from 'bun:test' | |
| 2 | 2 | import { mkdtemp, rm, writeFile } from 'node:fs/promises' |
| 3 | 3 | import { tmpdir } from 'node:os' |
| 4 | 4 | import { join } from 'node:path' |
| @@ -82,8 +82,8 @@ describe('Pi bench session authority', () => { | ||
| 82 | 82 | }) |
| 83 | 83 | }) |
| 84 | 84 | |
| 85 | let artifact: string | |
| 86 | beforeAll(async () => { artifact = (await buildRuntime()).artifact }, 20000) | |
| 85 | // Build setup uses the build API's bounded command lifecycle, before test timers start. | |
| 86 | const { artifact } = await buildRuntime() | |
| 87 | 87 | async function withNative(run: (harness: ReturnType<typeof openRuntimeHarness>) => Promise<void>) { |
| 88 | 88 | const harness = openRuntimeHarness(artifact) |
| 89 | 89 | try { await run(harness) } |