1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { JestHookEmitter } from 'jest-watcher';
|
9 | import type { Context } from 'jest-runtime';
|
10 | import type { Config } from '@jest/types';
|
11 | import { AggregatedResult } from '@jest/test-result';
|
12 | import type { ChangedFilesPromise } from 'jest-changed-files';
|
13 | import type FailedTestsCache from './FailedTestsCache';
|
14 | import type TestWatcher from './TestWatcher';
|
15 | import type { Filter } from './types';
|
16 | export default function runJest({ contexts, globalConfig, outputStream, testWatcher, jestHooks, startRun, changedFilesPromise, onComplete, failedTestsCache, filter, }: {
|
17 | globalConfig: Config.GlobalConfig;
|
18 | contexts: Array<Context>;
|
19 | outputStream: NodeJS.WriteStream;
|
20 | testWatcher: TestWatcher;
|
21 | jestHooks?: JestHookEmitter;
|
22 | startRun: (globalConfig: Config.GlobalConfig) => void;
|
23 | changedFilesPromise?: ChangedFilesPromise;
|
24 | onComplete: (testResults: AggregatedResult) => void;
|
25 | failedTestsCache?: FailedTestsCache;
|
26 | filter?: Filter;
|
27 | }): Promise<void>;
|