/** * @file run jest by nodejs API * @description * Jest does not provide node API to run jest. * The followed code is inspired by * https://github.com/facebook/jest/blob/fdc74af37235354e077edeeee8aa2d1a4a863032/packages/jest-cli/src/cli/index.ts#L21 */ import type { Config } from '@jest/types'; import type { PluginAPI } from '@modern-js/core'; import { type UserConfig } from './config'; import type { Hooks } from './hook'; import type { TestConfig } from './types'; type Argv = Omit; /** * Node API: execute jest */ export declare function runJest(config: Argv, pwd?: string): Promise; /** * Node API: run test */ export declare function runTest(api: PluginAPI<{ hooks: Hooks; userConfig: UserConfig; normalizedConfig: Required; }>, config: TestConfig, pwd?: string): Promise; export {};