Files
bun.sh/test/js/bun/spawn/job-object-bug.test.ts
2024-09-03 21:32:52 -07:00

15 lines
447 B
TypeScript

import { spawn } from "bun";
import { expect, it } from "bun:test";
import { bunEnv, bunExe } from "harness";
import { join } from "node:path";
it("does not hang", async () => {
const subprocess = spawn({
cmd: [bunExe(), "test", join(import.meta.dirname, "job-object-bug.ts")],
env: bunEnv,
stdio: ["ignore", "pipe", "pipe"],
});
await Bun.readableStreamToText(subprocess.stdout);
expect(await subprocess.exited).toBe(0);
});