From 763b4b502b28ebf7aa84ec346bdb7ff229bf1869 Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Mon, 13 May 2024 12:22:03 -0700 Subject: [PATCH] test --- test/js/bun/resolve/longjavascriptfilename.js | 1 + test/js/bun/resolve/resolve.test.ts | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 test/js/bun/resolve/longjavascriptfilename.js diff --git a/test/js/bun/resolve/longjavascriptfilename.js b/test/js/bun/resolve/longjavascriptfilename.js new file mode 100644 index 00000000000000..bbf2a2836f33d0 --- /dev/null +++ b/test/js/bun/resolve/longjavascriptfilename.js @@ -0,0 +1 @@ +module.exports.foo = "bar"; diff --git a/test/js/bun/resolve/resolve.test.ts b/test/js/bun/resolve/resolve.test.ts index 1a46b049cdabbe..bd6225dbd3e046 100644 --- a/test/js/bun/resolve/resolve.test.ts +++ b/test/js/bun/resolve/resolve.test.ts @@ -312,3 +312,7 @@ it.todo("import override to bun:test", async () => { // @ts-expect-error expect(await import("#bun_test")).toBeDefined(); }); + +it("should import short paths", () => { + expect(require("./LONGJA~1.JS")).toBeDefined(); +});