• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/// <reference path="../fourslash.ts" />
2
3// @Filename: /tsconfig.json
4//// { "compilerOptions": { "module": "commonjs" } }
5
6// @Filename: /package.json
7//// { "dependencies": { "@jest/types": "*", "ts-jest": "*" } }
8
9// @Filename: /node_modules/@jest/types/package.json
10//// { "name": "@jest/types" }
11
12// @Filename: /node_modules/@jest/types/index.d.ts
13//// import type * as Config from "./Config";
14//// export type { Config };
15
16// @Filename: /node_modules/@jest/types/Config.d.ts
17//// export interface ConfigGlobals {
18////     [K: string]: unknown;
19//// }
20
21// @Filename: /node_modules/ts-jest/index.d.ts
22//// export {};
23//// declare module "@jest/types" {
24////     namespace Config {
25////         interface ConfigGlobals {
26////             'ts-jest': any;
27////         }
28////     }
29//// }
30
31// @Filename: /index.ts
32//// C/**/
33
34verify.completions({
35  marker: "",
36  includes: [{
37    name: "Config",
38    source: "/node_modules/@jest/types/index",
39    hasAction: true,
40    sortText: completion.SortText.AutoImportSuggestions,
41  }],
42  preferences: {
43    includeCompletionsForModuleExports: true,
44  },
45});
46
47edit.insert("o");
48
49verify.completions({
50  marker: "",
51  includes: [{
52    name: "Config",
53    source: "@jest/types",
54    hasAction: true,
55    sortText: completion.SortText.AutoImportSuggestions,
56  }],
57  preferences: {
58    includeCompletionsForModuleExports: true,
59    allowIncompleteCompletions: true,
60  },
61});
62