MCPcopy
hub / github.com/jestjs/jest / runWithoutWatch

Function runWithoutWatch

packages/jest-core/src/cli/index.ts:287–312  ·  view source on GitHub ↗
(
  globalConfig: Config.GlobalConfig,
  contexts: Array<TestContext>,
  outputStream: WriteStream,
  onComplete: OnCompleteCallback,
  changedFilesPromise?: ChangedFilesPromise,
  filter?: Filter,
)

Source from the content-addressed store, hash-verified

285};
286
287const runWithoutWatch = async (
288 globalConfig: Config.GlobalConfig,
289 contexts: Array<TestContext>,
290 outputStream: WriteStream,
291 onComplete: OnCompleteCallback,
292 changedFilesPromise?: ChangedFilesPromise,
293 filter?: Filter,
294) => {
295 const startRun = async (): Promise<void | null> => {
296 if (!globalConfig.listTests) {
297 preRunMessagePrint(outputStream);
298 }
299 return runJest({
300 changedFilesPromise,
301 contexts,
302 failedTestsCache: undefined,
303 filter,
304 globalConfig,
305 onComplete,
306 outputStream,
307 startRun,
308 testWatcher: new TestWatcher({isWatchMode: false}),
309 });
310 };
311 return startRun();
312};

Callers 1

_run10000Function · 0.85

Calls 1

startRunFunction · 0.70

Tested by

no test coverage detected