Files

27 lines
778 B
TypeScript
Raw Permalink Normal View History

2026-08-27 21:09:14 +00:00
import { expect, test } from "bun:test";
import { bunEnv, bunExe, normalizeBunSnapshot } from "harness";
// make sure beforeAll runs in the right order
test("21830", async () => {
const result = Bun.spawn({
cmd: [bunExe(), "test", import.meta.dir + "/21830.fixture.ts"],
stdout: "pipe",
stderr: "pipe",
env: bunEnv,
});
const exitCode = await result.exited;
const stdout = await result.stdout.text();
const stderr = await result.stderr.text();
expect(exitCode).toBe(0);
expect(normalizeBunSnapshot(stdout)).toMatchInlineSnapshot(`
"bun test <version> (<revision>)
Create Show Tests pre
Create Show Tests post
Get Show Data Tests pre
Get Show Data Tests post
Show Deletion Tests pre
Show Deletion test post"
`);
});