Files
bun-src/test/regression/issue/04011.test.ts
T
2026-08-27 21:09:14 +00:00

16 lines
422 B
TypeScript

import { describe, expect, test } from "bun:test";
import { bunEnv, bunExe } from "harness";
describe.concurrent("issue/04011", () => {
test("running a missing script should return non zero exit code", async () => {
await using proc = Bun.spawn({
cmd: [bunExe(), "run", "missing.ts"],
env: bunEnv,
stderr: "inherit",
stdout: "pipe",
});
expect(await proc.exited).toBe(1);
});
});