method WatchSession.results
WatchSession.results(): Stream<RunResult>

The coarse feed as a Stream: one complete RunResult per rerun, with the combinators attached. for await (const r of session) is the same sequence.

// Defined, not invoked: a real session holds a browser open.
async function untilGreen(session: WatchSession) {
  const [red] = await session.results().filter((r) => !r.ok).take(1).collect();

  return red.failures;
}

Return Type

Usage

import { type WatchSession } from "lib/api/watch.ts";