blob: b0bedd9d631b79d1e1dbcbdff318b1aecc859020 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { test, expect } from "bun:test";
import { bunEnv, bunExe } from "harness";
import { join } from "path";
test("CommonJS entry point with no exports", () => {
const { stdout, exitCode } = Bun.spawnSync({
cmd: [bunExe(), "run", "--bun", join(import.meta.dir, "commonjs-no-exports-fixture.js")],
env: bunEnv,
stderr: "inherit",
});
expect(stdout.toString().trim().endsWith("--pass--")).toBe(true);
expect(exitCode).toBe(0);
});
|