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