Files
bun.sh/test/js/bun/spawn/job-object-bug.test.ts
Jarred Sumner 2e02d9de28 Use ReadableStream.prototype.* in tests instead of new Response(...).* (#20937)
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Co-authored-by: Alistair Smith <hi@alistair.sh>
Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
2025-07-14 00:47:53 -07:00

15 lines
428 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 subprocess.stdout.text();
expect(await subprocess.exited).toBe(0);
});