()
| 293 | } |
| 294 | |
| 295 | end(): ReturnType<JestWorker['end']> { |
| 296 | const worker = this._worker |
| 297 | if (!worker) { |
| 298 | throw new Error('Farm is ended, no more calls can be done to it') |
| 299 | } |
| 300 | cleanupWorkers(worker) |
| 301 | this._worker = undefined |
| 302 | return worker.end() |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * Quietly end the worker if it exists |
nothing calls this directly
no test coverage detected