Files
bun.sh/test/js/bun/shell/yield.test.ts
2025-06-19 18:47:00 -07:00

12 lines
381 B
TypeScript

import { describe } from "bun:test";
import { createTestBuilder } from "./test_builder";
const TestBuilder = createTestBuilder(import.meta.path);
describe("yield", async () => {
const array = Array(10000).fill("a");
TestBuilder.command`echo -n ${array} > myfile.txt`
.exitCode(0)
.fileEquals("myfile.txt", array.join(" "))
.runAsTest("doesn't stackoverflow");
});