* add job to interface
({ cid, caps, specs, hasTests }: Workers.Job & { cid: string })
| 187 | * add job to interface |
| 188 | */ |
| 189 | addJob({ cid, caps, specs, hasTests }: Workers.Job & { cid: string }) { |
| 190 | this._jobs.set(cid, { caps, specs, hasTests }) |
| 191 | if (hasTests) { |
| 192 | this.onSpecRunning(cid) |
| 193 | } else { |
| 194 | this._skippedSpecs++ |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * clear job from interface |
nothing calls this directly
no test coverage detected