Files

20 lines
506 B
TypeScript
Raw Permalink Normal View History

2026-08-27 21:09:14 +00:00
import { expect, test } from "bun:test";
import { bunEnv, bunExe } from "harness";
import { join } from "path";
test("06946", async () => {
const buns = Array.from(
{ length: 25 },
() =>
Bun.spawn({
cmd: [bunExe(), join(import.meta.dir, "t.mjs")],
cwd: import.meta.dir,
stdio: ["inherit", "inherit", "inherit"],
env: bunEnv,
}).exited,
);
const exited = await Promise.all(buns);
expect(exited).toEqual(Array.from({ length: 25 }, () => 0));
});