2017-12-06 20:27:38 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @moduleResolution: node
|
|
|
|
// @noLib: true
|
|
|
|
|
|
|
|
// @Filename: /node_modules/real/index.d.ts
|
|
|
|
// @Symlink: /node_modules/link/index.d.ts
|
|
|
|
////export const foo: number;
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////import { foo } from "link";
|
|
|
|
|
|
|
|
// @Filename: /b.ts
|
2018-01-03 17:20:53 +01:00
|
|
|
////[|foo;|]
|
2017-12-06 20:27:38 +01:00
|
|
|
|
|
|
|
// Uses "link" instead of "real" because `a` did.
|
|
|
|
goTo.file("/b.ts");
|
|
|
|
verify.importFixAtPosition([
|
|
|
|
`import { foo } from "link";
|
|
|
|
|
2018-07-24 22:56:21 +02:00
|
|
|
foo;`,
|
|
|
|
`import { foo } from "real";
|
|
|
|
|
2017-12-06 20:27:38 +01:00
|
|
|
foo;`,
|
|
|
|
]);
|