Files

12 lines
425 B
TypeScript
Raw Permalink Normal View History

2026-08-27 21:09:14 +00:00
import { expect, test } from "bun:test";
import { bunRun } from "harness";
import path from "path";
test.concurrent(`"use strict'; preserves strict mode in CJS`, async () => {
expect(await bunRun(path.join(import.meta.dir, "strict-mode-fixture.ts"))).toSpawn();
});
test.concurrent(`sloppy mode by default in CJS`, async () => {
expect(await bunRun(path.join(import.meta.dir, "sloppy-mode-fixture.ts"))).toSpawn();
});