()
| 313 | }; |
| 314 | |
| 315 | const terminationHandler = async () => { |
| 316 | const runningTests = findRunningTests(root); |
| 317 | if (runningTests.length > 0) { |
| 318 | root.reporter.interrupted(runningTests); |
| 319 | // Allow the reporter stream to process the interrupted event |
| 320 | await new Promise((resolve) => setImmediate(resolve)); |
| 321 | } |
| 322 | await exitHandler(true); |
| 323 | process.exit(); |
| 324 | }; |
| 325 | |
| 326 | process.on('uncaughtException', exceptionHandler); |
| 327 | process.on('unhandledRejection', rejectionHandler); |
nothing calls this directly
no test coverage detected