mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
12 lines
297 B
TypeScript
12 lines
297 B
TypeScript
import { bunEnv, bunExe } from "harness";
|
|
|
|
test("readline should unref", () => {
|
|
const res = Bun.spawnSync({
|
|
cmd: [bunExe(), import.meta.dir + "/readline_never_unrefs.js"],
|
|
env: bunEnv,
|
|
stdio: ["inherit", "pipe", "pipe"],
|
|
timeout: 1000,
|
|
});
|
|
expect(res.exitCode).toBe(0);
|
|
});
|