-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ad25af
commit cc3615c
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
tests/cases/fourslash/completionsImport_filteredByPackageJson_reexport2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
//@noEmit: true | ||
|
||
//@Filename: /package.json | ||
////{ | ||
//// "dependencies": { | ||
//// "b_": "*", | ||
//// "_c": "*" | ||
//// } | ||
////} | ||
|
||
//@Filename: /node_modules/a/index.d.ts | ||
////export const foo = 0; | ||
|
||
//@Filename: /node_modules/a/package.json | ||
////{ | ||
//// "name": "a", | ||
//// "types": "./index.d.ts" | ||
////} | ||
|
||
//@Filename: /node_modules/b_/index.d.ts | ||
////export { foo } from "a"; | ||
|
||
//@Filename: /node_modules/b_/package.json | ||
////{ | ||
//// "name": "b_", | ||
//// "types": "./index.d.ts" | ||
////} | ||
|
||
//@Filename: /node_modules/_c/index.d.ts | ||
////export { foo } from "b_"; | ||
|
||
//@Filename: /node_modules/_c/package.json | ||
////{ | ||
//// "name": "_c", | ||
//// "types": "./index.d.ts" | ||
////} | ||
|
||
//@Filename: /src/index.ts | ||
////fo/**/ | ||
|
||
verify.completions({ | ||
marker: test.marker(""), | ||
includes: [ | ||
completion.undefinedVarEntry, | ||
{ | ||
name: "foo", | ||
source: "/node_modules/b_/index", | ||
hasAction: true, | ||
sortText: completion.SortText.AutoImportSuggestions | ||
}, | ||
...completion.statementKeywordsWithTypes | ||
], | ||
preferences: { | ||
includeCompletionsForModuleExports: true | ||
} | ||
}); |