| 285 | }; |
| 286 | |
| 287 | const 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 | }; |