mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
20 lines
505 B
TypeScript
20 lines
505 B
TypeScript
import { expect, test } from "bun:test";
|
|
import { bunEnv, bunExe } from "harness";
|
|
import { join } from "path";
|
|
|
|
test("08965", async () => {
|
|
const buns = Array.from(
|
|
{ length: 25 },
|
|
() =>
|
|
Bun.spawn({
|
|
cmd: [bunExe(), join(import.meta.dir, "1.ts")],
|
|
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));
|
|
});
|