mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Add transitive pnpm import statement completions test (#45186)
This commit is contained in:
1 parent
9665bc6199
commit
9334a15f5f
1 file changed
+29
@@ -0,0 +1,29 @@
|
||||
/// <reference path="../fourslash.ts" />
|
||||
|
||||
// @Filename: /project/tsconfig.json
|
||||
//// { "compilerOptions": { "module": "commonjs" } }
|
||||
|
||||
// @Filename: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts
|
||||
//// import "csstype";
|
||||
//// export declare function Component(): void;
|
||||
|
||||
// @Filename: /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts
|
||||
//// export interface SvgProperties {}
|
||||
|
||||
// @Filename: /project/index.ts
|
||||
//// [|import SvgProp/**/|]
|
||||
|
||||
// @link: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react -> /project/node_modules/@types/react
|
||||
// @link: /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype -> /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype
|
||||
|
||||
goTo.marker("");
|
||||
verify.completions({
|
||||
isNewIdentifierLocation: true,
|
||||
marker: "",
|
||||
exact: [],
|
||||
preferences: {
|
||||
includeCompletionsForImportStatements: true,
|
||||
includeCompletionsWithInsertText: true,
|
||||
includeCompletionsWithSnippetText: true,
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user