Files
bun.sh/test/regression/issue/14982/14982.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

19 lines
574 B
TypeScript

import { describe, expect, it } from "bun:test";
import { join } from "path";
import { bunEnv, bunExe } from "../../../harness";
describe("issue 14982", () => {
it("does not hang in commander", async () => {
const process = Bun.spawn([bunExe(), join(__dirname, "commander-hang.fixture.ts"), "test"], {
stdin: "inherit",
stdout: "pipe",
stderr: "inherit",
cwd: __dirname,
env: bunEnv,
});
await process.exited;
expect(process.exitCode).toBe(0);
expect(await process.stdout.text()).toBe("Test command\n");
}, 15000);
});