2016-07-26 22:43:29 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
2016-08-06 02:53:04 +02:00
|
|
|
|
|
|
|
// Should give completions for files that are discovered via the baseUrl compiler option
|
|
|
|
|
2016-07-26 22:43:29 +02:00
|
|
|
// @baseUrl: tests/cases/fourslash/modules
|
|
|
|
|
|
|
|
// @Filename: tests/test0.ts
|
|
|
|
//// import * as foo1 from "mod/*import_as0*/
|
|
|
|
//// import foo2 = require("mod/*import_equals0*/
|
|
|
|
//// var foo3 = require("mod/*require0*/
|
|
|
|
|
|
|
|
// @Filename: modules/module.ts
|
|
|
|
//// export var x = 5;
|
|
|
|
|
|
|
|
// @Filename: package.json
|
|
|
|
//// { "dependencies": { "module-from-node": "latest" } }
|
|
|
|
// @Filename: node_modules/module-from-node/index.ts
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-26 22:43:29 +02:00
|
|
|
|
2018-05-01 22:00:13 +02:00
|
|
|
verify.completions({
|
2018-10-29 18:03:25 +01:00
|
|
|
marker: test.markers(),
|
2018-05-03 22:04:08 +02:00
|
|
|
exact: ["module", "module-from-node"],
|
2018-05-01 22:00:13 +02:00
|
|
|
isNewIdentifierLocation: true,
|
|
|
|
});
|