Everything a caller may set on a script run: the CLI's flags and the API's options, minus argv.
cwd: string
Directory the entry, relative imports and node_modules lookups resolve against.
projectRoot: string
Skips the package.json walk when the caller has already done it.
browser: "chromium" | "firefox" | "webkit"
Engine the script runs in. Defaults to chromium.
port: number
Port the local server binds. Defaults to 1234.
portExplicit: boolean
True when a port was named explicitly, which makes a taken one an error rather than a search.
watch: boolean
Re-run on every save instead of exiting after one run.
open: boolean
Run in a visible browser window.
timeout: number | null
Ms the script may run before it is declared hung; null (the default) is unbounded.
reporter: Args.ParsedFlags["reporter"]
Stdout format when the entry turns out to be a suite. Ignored by a plain script, which has no report to format — its own output IS the output.
junit: Args.ParsedFlags["junit"]
Writes a JUnit XML report for a declared suite. Ignored by a plain script.
debug: Args.ParsedFlags["debug"]
Prints the server URL and the page's console, as the bare verb's --debug does.
filter: Args.ParsedFlags["filter"]
Narrows a declared suite to matching tests. Ignored by a plain script.