Files
bun.sh/test/regression/issue/12910/12910.test.ts
2024-09-03 21:32:52 -07:00

19 lines
505 B
TypeScript

import { expect, test } from "bun:test";
import { bunEnv, bunExe } from "harness";
import { join } from "path";
test("12910", 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));
});