(ctx: {
skip: (reason?: string) => void;
})
| 21 | }) => Promise<void>; |
| 22 | |
| 23 | async function loadBundler(ctx: { |
| 24 | skip: (reason?: string) => void; |
| 25 | }): Promise<BundleComputerd | undefined> { |
| 26 | try { |
| 27 | await fs.access(distEntry); |
| 28 | } catch { |
| 29 | ctx.skip("dist/cli/computerd.cjs not built; run `npm run build` first"); |
| 30 | return undefined; |
| 31 | } |
| 32 | const mod = (await import(bundleScript)) as { bundleComputerd: BundleComputerd }; |
| 33 | return mod.bundleComputerd; |
| 34 | } |
| 35 | |
| 36 | test("COMPUTERD_DEFAULT_PORT stamps into the SEA bundle", async (ctx) => { |
| 37 | const bundleComputerd = await loadBundler(ctx); |
no test coverage detected