mirror of
https://github.com/oven-sh/bun
synced 2026-02-19 07:12:24 +00:00
19 lines
588 B
TypeScript
19 lines
588 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 new Response(process.stdout).text()).toBe("Test command\n");
|
|
}, 15000);
|
|
});
|