interface ResolvedRun

What the run actually resolved to, after package.json, the defaults and the options were merged — the answers a caller cannot otherwise recover from what it passed in.

port is the sharp one: it auto-increments past a busy port, so the value bound is routinely not the value requested.

const resolved: ResolvedRun = {
  browser: 'chromium', projectRoot: '/proj', output: '/proj/tmp', port: 1235,
  extensions: ['js', 'ts'], coverageFormats: [],
};
resolved.port; // 1235 — 1234 was taken

Properties

browser: "chromium" | "firefox" | "webkit"

The engine the tests ran in.

projectRoot: string

Absolute path of the directory holding package.json.

output: string

Absolute path of the build output directory — where the bundle and artifacts landed.

port: number

The port actually bound, which may differ from the one requested.

extensions: string[]

File extensions treated as test files.

coverageFormats: string[]

Coverage artifact formats beyond the terminal summary.

optional
filter: string

The active test-name filter, when one was set.

Usage

import { type ResolvedRun } from "lib/api/index.ts";