mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JS: Add test
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// Relative import
|
||||
import "../lib/file"; // $ importTarget=Extended/lib/file.ts
|
||||
import "../lib/file.ts"; // $ importTarget=Extended/lib/file.ts
|
||||
import "../lib/file.js"; // $ importTarget=Extended/lib/file.ts
|
||||
import "../lib"; // $ importTarget=Extended/lib/index.ts
|
||||
import "../lib/index"; // $ importTarget=Extended/lib/index.ts
|
||||
import "../lib/index.ts"; // $ importTarget=Extended/lib/index.ts
|
||||
import "../lib/index.js"; // $ importTarget=Extended/lib/index.ts
|
||||
|
||||
// Import relative to baseUrl
|
||||
import "lib/file"; // $ importTarget=Extended/lib/file.ts
|
||||
import "lib/file.ts"; // $ importTarget=Extended/lib/file.ts
|
||||
import "lib/file.js"; // $ importTarget=Extended/lib/file.ts
|
||||
import "lib"; // $ importTarget=Extended/lib/index.ts
|
||||
import "lib/index"; // $ importTarget=Extended/lib/index.ts
|
||||
import "lib/index.ts"; // $ importTarget=Extended/lib/index.ts
|
||||
import "lib/index.js"; // $ importTarget=Extended/lib/index.ts
|
||||
|
||||
// Import matching "@/*" path mapping
|
||||
import "@/file"; // $ importTarget=Extended/lib/file.ts
|
||||
import "@/file.ts"; // $ importTarget=Extended/lib/file.ts
|
||||
import "@/file.js"; // $ importTarget=Extended/lib/file.ts
|
||||
import "@"; // $ importTarget=Extended/lib/nostar.ts
|
||||
import "@/index"; // $ importTarget=Extended/lib/index.ts
|
||||
import "@/index.ts"; // $ importTarget=Extended/lib/index.ts
|
||||
import "@/index.js"; // $ importTarget=Extended/lib/index.ts
|
||||
|
||||
// Import matching "@/*.xyz" path mapping. Note that this is not actually supported by TypeScript.
|
||||
import "@/file.xyz";
|
||||
import "@/file.ts.xyz";
|
||||
import "@/file.js.xyz";
|
||||
import "@.xyz";
|
||||
import "@/index.xyz";
|
||||
import "@/index.ts.xyz";
|
||||
import "@/index.js.xyz";
|
||||
Reference in New Issue
Block a user