blob: f29162bf7ad7f59e9310e9f902e1bc868d216add (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { it, expect } from "bun:test";
import { bunEnv, bunExe } from "harness";
import { join } from "path";
it("should execute empty scripts", () => {
const { stdout, stderr, exitCode } = Bun.spawnSync({
cmd: [bunExe(), "run", "--bun", join(import.meta.dir, "empty-file.js")],
env: bunEnv,
stdout: "pipe",
stderr: "pipe",
});
expect(stdout.toString()).toBeEmpty();
expect(stderr.toString()).toBeEmpty();
expect(exitCode).toBe(0);
});
|