aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/bun.js/resolve.test.js1
-rw-r--r--test/bun.js/tsconfig.json3
2 files changed, 3 insertions, 1 deletions
diff --git a/test/bun.js/resolve.test.js b/test/bun.js/resolve.test.js
index fcc4152f5..305a374a2 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 91b0ad56d..0874dfd7e 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": "."
},