Files
bun.sh/test/regression/issue/09563/09563.test.ts
2024-09-03 21:32:52 -07:00

11 lines
276 B
TypeScript

import { test } from "bun:test";
test("importing empty files in the async transpiler does not crash", async () => {
const promises = new Array(10);
for (let i = 0; i < 10; i++) {
promises.push(import("./empty.ts" + "?i" + i));
}
await Promise.all(promises);
});