aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-15 03:53:33 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-15 03:53:33 -0800
commit95e727162bd4a73ab673cf76898ec22638cd306a (patch)
tree1a4f58048b235585a74bbd84f14f30cdfa09ffe4
parente860e12be595be7352eb0835d9c64031d42ef632 (diff)
downloadbun-95e727162bd4a73ab673cf76898ec22638cd306a.tar.gz
bun-95e727162bd4a73ab673cf76898ec22638cd306a.tar.zst
bun-95e727162bd4a73ab673cf76898ec22638cd306a.zip
Make sure we test * in tesconfig
Fixes #540
-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": "."
},