TargetOffers
Defined in: packages/core/src/adapters/capture-target-offers.ts:10
A runner’s live target list.
Properties
Section titled “Properties”defaultTarget
Section titled “defaultTarget”
readonlydefaultTarget:CaptureTarget
Defined in: packages/core/src/adapters/capture-target-offers.ts:12
First declared target: what a project with no browsers setting resolves to.
Methods
Section titled “Methods”current()
Section titled “current()”current(): readonly
RunnerTarget[]
Defined in: packages/core/src/adapters/capture-target-offers.ts:14
The targets with their current status; reads metadata.targets.
Returns
Section titled “Returns”readonly RunnerTarget[]
guard()
Section titled “guard()”guard<
T,Rest>(launch): (target, …rest) =>Promise<T>
Defined in: packages/core/src/adapters/capture-target-offers.ts:20
Wrap launch so a target the runner does not offer fails with a TargetLaunchError, and
a launch that fails marks its target unavailable with the launch error as the reason (not a
transient one: a remote service that is down stays offered).
Type Parameters
Section titled “Type Parameters”T
Rest extends unknown[]
Parameters
Section titled “Parameters”launch
Section titled “launch”(target, …rest) => Promise<T>
Returns
Section titled “Returns”(target, …rest) => Promise<T>
lifecycle()
Section titled “lifecycle()”lifecycle(
verify):AdapterLifecycle
Defined in: packages/core/src/adapters/capture-target-offers.ts:24
Lifecycle whose setup replaces the statuses with what verify finds, and health reports them.
Parameters
Section titled “Parameters”verify
Section titled “verify”() => Promise<readonly RunnerTarget[]>