TypeScript/tests/cases/fourslash/completionForStringLiteralNonrelativeImport14.ts

29 lines
837 B
TypeScript

/// <reference path='fourslash.ts' />
// Should give completions for modules referenced via baseUrl and paths compiler options with explicit name mappings
// @Filename: tsconfig.json
//// {
//// "compilerOptions": {
//// "baseUrl": "./modules",
//// "paths": {
//// "/module1": ["some/path/whatever.ts"],
//// "/module2": ["some/other/path.ts"]
//// }
//// }
//// }
// @Filename: tests/test0.ts
//// import * as foo1 from "//*import_as0*/
//// import foo2 = require("//*import_equals0*/
//// var foo3 = require("//*require0*/
// @Filename: some/path/whatever.ts
//// export var x = 9;
// @Filename: some/other/path.ts
//// export var y = 10;
verify.completions({ marker: test.markerNames(), exact: ["lib", "tests", "/module1", "/module2"], isNewIdentifierLocation: true });