blob: d75938124234c349413f0409cf610b3715188a64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { spawnSync } from "bun";
import { describe, it, expect, test } from "bun:test";
import { bunEnv, bunExe } from "harness";
test("esbuild", () => {
const { exitCode, stderr, stdout } = spawnSync([bunExe(), import.meta.dir + "/esbuild-test.js"], {
env: {
...bunEnv,
},
});
const out = "" + stderr?.toString() + stdout?.toString();
if (exitCode !== 0 && out?.length) {
throw new Error(out);
}
expect(exitCode).toBe(0);
});
|