diff --git a/test/bun.js/resolve.test.js b/test/bun.js/resolve.test.js index fcc4152f53..305a374a22 100644 --- a/test/bun.js/resolve.test.js +++ b/test/bun.js/resolve.test.js @@ -72,6 +72,7 @@ it("import.meta.resolve", async () => { // works with tsconfig.json "paths" expect(await import.meta.resolve("foo/bar")).toBe(join(import.meta.path, "../baz.js")); + expect(await import.meta.resolve("@faasjs/baz")).toBe(join(import.meta.path, "../baz.js")); // works with package.json "exports" writePackageJSONExportsFixture(); diff --git a/test/bun.js/tsconfig.json b/test/bun.js/tsconfig.json index 91b0ad56d9..0874dfd7ed 100644 --- a/test/bun.js/tsconfig.json +++ b/test/bun.js/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "allowSyntheticDefaultImports": true, "paths": { - "foo/bar": ["baz.js"] + "foo/bar": ["baz.js"], + "@faasjs/*": ["*.js"] }, "baseUrl": "." },