Skip to content

Commit

Permalink
add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Mar 22, 2024
1 parent be4b47d commit 940448d
Show file tree
Hide file tree
Showing 2 changed files with 320 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/regression/issue/09563/09563.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { test, expect } 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);
});
310 changes: 310 additions & 0 deletions test/regression/issue/09563/empty.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,310 @@
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file
// big empty file

export interface IMaTypeScrIptFile {}

0 comments on commit 940448d

Please sign in to comment.