interface LaunchTarget

The three fields launch actually reads. Narrower than Config on purpose: qunitx run has a config of its own with no test files in it, and asking it to fake thirty unrelated fields to borrow the CDP pre-launch fast path would be a cast pretending to be a type.

const target: LaunchTarget = { browser: 'chromium', open: false, watch: false };
target.browser; // 'chromium'

Properties

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

Engine to launch. Defaults to chromium when absent.

optional
open: boolean | string

--open: true asks for a visible window (honoured together with watch).

optional
watch: boolean

--watch: keeps firefox/webkit headed when open is also set.

Usage

import { type LaunchTarget } from "lib/setup/browser.ts";