INNER CODE UNIT · TypeScript
Promise
SveltyCMS/SveltyCMS · scripts/benchmark-matrix/index.ts:421
await new Promise((r) => setTimeout(r, 500));
}
return false;
}
function spawnTestProcess(
file: string,
serverEnv: Record<string, string>,
baseUrl: string,
runId: string,
): Promise<{ code: number; durationMs: number; output: string }> {
return new Promise((resolve) => {
const testStartTime = performance.now();
const p = spawn("bun", ["test", `tests/benchmarks/${file}`, "--timeout", "300000"], {
stdio: ["inherit", "pipe", "pipe"],
shell: process.platform === "win32",
env: {
...serverEnv,