mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
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>
19 lines
574 B
TypeScript
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);
|
|
});
|