blob: a3db4270ddf9dc4f6a4438e71882177ac2789d72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { expect, test } from "bun:test";
import { bunEnv, bunExe } from "harness";
test("running a missing script should return non zero exit code", () => {
const { stdout, exitCode } = Bun.spawnSync({
cmd: [bunExe(), "run", "missing.ts"],
env: bunEnv,
stderr: "inherit",
});
expect(exitCode).toBe(1);
});
|