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>
15 lines
428 B
TypeScript
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);
|
|
});
|