Make sure we test * in tesconfig

Fixes #540
This commit is contained in:
Jarred Sumner
2023-02-15 03:53:33 -08:00
parent e860e12be5
commit 95e727162b
2 changed files with 3 additions and 1 deletions

View File

@@ -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();

View File

@@ -3,7 +3,8 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"paths": {
"foo/bar": ["baz.js"]
"foo/bar": ["baz.js"],
"@faasjs/*": ["*.js"]
},
"baseUrl": "."
},