Skip to content

Commit 9334a15

Browse files
authored
Add transitive pnpm import statement completions test (#45186)
1 parent 9665bc6 commit 9334a15

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/// <reference path="../fourslash.ts" />
2+
3+
// @Filename: /project/tsconfig.json
4+
//// { "compilerOptions": { "module": "commonjs" } }
5+
6+
// @Filename: /project/node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts
7+
//// import "csstype";
8+
//// export declare function Component(): void;
9+
10+
// @Filename: /project/node_modules/.pnpm/[email protected]/node_modules/csstype/index.d.ts
11+
//// export interface SvgProperties {}
12+
13+
// @Filename: /project/index.ts
14+
//// [|import SvgProp/**/|]
15+
16+
// @link: /project/node_modules/.pnpm/@[email protected]/node_modules/@types/react -> /project/node_modules/@types/react
17+
// @link: /project/node_modules/.pnpm/[email protected]/node_modules/csstype -> /project/node_modules/.pnpm/@[email protected]/node_modules/csstype
18+
19+
goTo.marker("");
20+
verify.completions({
21+
isNewIdentifierLocation: true,
22+
marker: "",
23+
exact: [],
24+
preferences: {
25+
includeCompletionsForImportStatements: true,
26+
includeCompletionsWithInsertText: true,
27+
includeCompletionsWithSnippetText: true,
28+
}
29+
});

0 commit comments

Comments
 (0)