(err: any)
| 256 | |
| 257 | const uncaught: NodeJS.UncaughtExceptionListener & |
| 258 | NodeJS.UnhandledRejectionListener = (err: any) => { |
| 259 | if (currentSpec) { |
| 260 | currentSpec.onException(err); |
| 261 | currentSpec.cancel(); |
| 262 | } else { |
| 263 | console.error('Unhandled error'); |
| 264 | console.error(err.stack); |
| 265 | } |
| 266 | }; |
| 267 | |
| 268 | let oldListenersException: Array<NodeJS.UncaughtExceptionListener>; |
| 269 | let oldListenersRejection: Array<NodeJS.UnhandledRejectionListener>; |
nothing calls this directly
no test coverage detected