Add transitive pnpm import statement completions test (#45186)

This commit is contained in:
Andrew Branch authored and GitHub committed 2021-07-26 14:24:59 -07:00
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,
}
});