Skip to content

Commit cc3615c

Browse files
committed
Add another reexport test
1 parent 6ad25af commit cc3615c

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
//@noEmit: true
4+
5+
//@Filename: /package.json
6+
////{
7+
//// "dependencies": {
8+
//// "b_": "*",
9+
//// "_c": "*"
10+
//// }
11+
////}
12+
13+
//@Filename: /node_modules/a/index.d.ts
14+
////export const foo = 0;
15+
16+
//@Filename: /node_modules/a/package.json
17+
////{
18+
//// "name": "a",
19+
//// "types": "./index.d.ts"
20+
////}
21+
22+
//@Filename: /node_modules/b_/index.d.ts
23+
////export { foo } from "a";
24+
25+
//@Filename: /node_modules/b_/package.json
26+
////{
27+
//// "name": "b_",
28+
//// "types": "./index.d.ts"
29+
////}
30+
31+
//@Filename: /node_modules/_c/index.d.ts
32+
////export { foo } from "b_";
33+
34+
//@Filename: /node_modules/_c/package.json
35+
////{
36+
//// "name": "_c",
37+
//// "types": "./index.d.ts"
38+
////}
39+
40+
//@Filename: /src/index.ts
41+
////fo/**/
42+
43+
verify.completions({
44+
marker: test.marker(""),
45+
includes: [
46+
completion.undefinedVarEntry,
47+
{
48+
name: "foo",
49+
source: "/node_modules/b_/index",
50+
hasAction: true,
51+
sortText: completion.SortText.AutoImportSuggestions
52+
},
53+
...completion.statementKeywordsWithTypes
54+
],
55+
preferences: {
56+
includeCompletionsForModuleExports: true
57+
}
58+
});

0 commit comments

Comments
 (0)