mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
add tsconfig and update path (#2401)
This commit is contained in:
@@ -61,7 +61,7 @@ it("import.meta.resolve", async () => {
|
||||
|
||||
expect(
|
||||
// optional second param can be any path, including a dir
|
||||
await import.meta.resolve("./bun.js/resolve.test.js", join(import.meta.path, "../")),
|
||||
await import.meta.resolve("./resolve/resolve.test.js", join(import.meta.path, "../")),
|
||||
).toBe(import.meta.path);
|
||||
|
||||
// can be a package path
|
||||
|
||||
12
test/js/bun/resolve/tsconfig.json
Normal file
12
test/js/bun/resolve/tsconfig.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"paths": {
|
||||
"foo/bar": ["baz.js"],
|
||||
"@faasjs/*": ["*.js"]
|
||||
},
|
||||
"baseUrl": "."
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user