declare module "jest" { /** * Execute Jest and return a promise with the results. * * @see https://github.com/facebook/jest/blob/master/packages/jest-cli/src/cli/index.js * @param jestConfig Jest configuration options. * @param projects Paths to projects to run tests on. */ export function runCLI( jestConfig: object, projects: string[] ): Promise<{ globalConfig: object; results: ResultsObject }>; export interface ResultsObject { testResults: { failureMessage?: string; }[]; } } declare module "jest-environment-node" { export default class NodeEnvironment { public global: any; constructor(config: any); public setup(): Promise; public teardown(): Promise; public runScript(script: any): any; } } declare namespace NodeJS { interface Global { vscode: any; } }