mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: Add baseUrl test
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import { Foo } from "../B/src/foo";
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"include": ["."]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { Bar } from "lib/bar";
|
||||
|
||||
export class Foo {}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { Foo } from "foo";
|
||||
|
||||
export class Bar {}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"include": ["."],
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
| A/index.ts:1:1:1:35 | import ... c/foo"; | B/src/foo.ts:1:1:4:0 | <toplevel> |
|
||||
| B/src/lib/bar.ts:1:1:1:26 | import ... "foo"; | B/src/foo.ts:1:1:4:0 | <toplevel> |
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
query Module getImportedModule(Import imprt) {
|
||||
result = imprt.getImportedModule()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
Reference in New Issue
Block a user