MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / runFixture

Function runFixture

apps/cloud/src/test-globalsetup-exit.node.test.ts:15–25  ·  view source on GitHub ↗
(shouldPass: boolean)

Source from the content-addressed store, hash-verified

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).
15const 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
27const diagnostic = (result: ReturnType<typeof runFixture>): string =>
28 [result.stdout, result.stderr].filter(Boolean).join("\n");

Calls

no outgoing calls

Tested by

no test coverage detected