import { $ } from "bun"; import { expect, test } from "bun:test"; test("which rlly long", async () => { const longstr = "a".repeat(100000); expect(async () => await $`${longstr}`.throws(true)).toThrow(); }); test("which PATH rlly long", async () => { const longstr = "a".repeat(100000); expect(async () => await $`PATH=${longstr} slkdfjlsdkfj`.throws(true)).toThrow(); });