blob: 2f22ec1390af1d1947665f28c181acdf84c1e317 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { test, expect } from "bun:test";
import { bunEnv, bunExe } from "harness";
import { join } from "path";
test("require.cache", () => {
const { stdout, exitCode } = Bun.spawnSync({
cmd: [bunExe(), "run", join(import.meta.dir, "require-cache-fixture.cjs")],
env: bunEnv,
});
expect(stdout.toString().trim().endsWith("--pass--")).toBe(true);
expect(exitCode).toBe(0);
});
|