interface ScriptInvocation

What qunitx run's argv amounts to: the one target, and the settings the flags asked for.

setup stops here rather than building a ScriptConfig, because run builds one itself — the project-root walk, the existence check and the defaults belong to running a script, not to reading a command line, and a caller with no argv should not have to assemble them.

const invocation: ScriptInvocation = { entry: 'seed.ts', settings: { browser: 'firefox' } };
invocation.settings.browser; // 'firefox'

Properties

entry: string

The single target, exactly as it was written on the command line.

Everything the flags set, including the projectRoot the parse already resolved.

Usage

import { type ScriptInvocation } from "lib/commands/run.ts";