mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
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>
15 lines
482 B
TypeScript
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);
|
|
});
|