mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
15 lines
413 B
TypeScript
15 lines
413 B
TypeScript
import { test, expect } from "bun:test";
|
|
import { spawnSync } from "bun";
|
|
import { bunEnv, bunExe } from "harness";
|
|
|
|
test("reportError", () => {
|
|
const cwd = import.meta.dir;
|
|
const { stderr } = spawnSync({
|
|
cmd: [bunExe(), new URL("./reportError.ts", import.meta.url).pathname],
|
|
cwd,
|
|
env: bunEnv,
|
|
});
|
|
const output = stderr.toString().replaceAll(cwd, "");
|
|
expect(output).toMatchSnapshot();
|
|
});
|