UNPKG

986 BTypeScriptView Raw
1import { StrykerOptions } from '@stryker-mutator/api/core';
2import { requireResolve } from '@stryker-mutator/util';
3import type * as jestModule from 'jest';
4export declare function determineResolveFromDirectory(options: StrykerOptions, resolve: (moduleId: string) => string): string;
5export declare namespace determineResolveFromDirectory {
6 var inject: readonly ["options", "resolve"];
7}
8type RunCli = typeof jestModule.runCLI;
9type GetVersion = typeof jestModule.getVersion;
10/**
11 * Direct stubbing on jest is no longer possible since jest > 25
12 */
13export declare class JestWrapper {
14 private readonly jest;
15 static readonly inject: readonly ["resolveFromDirectory", "requireFromCwd"];
16 constructor(resolveFromDirectory: string, requireFrom: typeof requireResolve);
17 runCLI(...args: Parameters<typeof jestModule.runCLI>): ReturnType<RunCli>;
18 getVersion(...args: Parameters<GetVersion>): ReturnType<GetVersion>;
19}
20export {};
21//# sourceMappingURL=jest-wrapper.d.ts.map
\No newline at end of file