12 lines
425 B
TypeScript
12 lines
425 B
TypeScript
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();
|
|
});
|