Files
bun.sh/test/regression/issue/23077/23077.test.ts
pfg 1fb9be3880 Re-enable afterAll inside a test (#23110)
Fixes #23064, Fixes #23077

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2025-09-30 19:41:35 -07:00

15 lines
482 B
TypeScript

import { expect, test } from "bun:test";
import { bunExe } from "harness";
test("23077", async () => {
await using result = Bun.spawn({
cmd: [bunExe(), "test", import.meta.dir + "/a.fixture.ts", import.meta.dir + "/b.fixture.ts"],
stdio: ["pipe", "pipe", "pipe"],
});
const exitCode = await result.exited;
const stdout = await result.stdout.text();
const stderr = await result.stderr.text();
expect(stderr).toInclude(" 2 pass");
expect(exitCode).toBe(0);
});