MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / addJob

Method addJob

packages/wdio-cli/src/interface.ts:189–196  ·  view source on GitHub ↗

* add job to interface

({ cid, caps, specs, hasTests }: Workers.Job & { cid: string })

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

onSpecRunningMethod · 0.95

Tested by

no test coverage detected