(shouldPass: boolean)
| 13 | // suite's outbound socket could hold them — the nested vitest then hung on the |
| 14 | // swallowed bind failure until spawnSync's timeout killed it (signal !== null). |
| 15 | const runFixture = (shouldPass: boolean) => |
| 16 | spawnSync(process.execPath, [vitestBin, "run", "--config", fixtureConfig], { |
| 17 | cwd: appRoot, |
| 18 | encoding: "utf8", |
| 19 | timeout: 60_000, |
| 20 | env: { |
| 21 | ...process.env, |
| 22 | CLOUD_TEST_DB_PORT: "0", |
| 23 | TEST_GLOBALSETUP_SHOULD_PASS: String(shouldPass), |
| 24 | }, |
| 25 | }); |
| 26 | |
| 27 | const diagnostic = (result: ReturnType<typeof runFixture>): string => |
| 28 | [result.stdout, result.stderr].filter(Boolean).join("\n"); |
no outgoing calls
no test coverage detected