Skip to content

Lupa API Reference / @pawel-up/lupa/runner / CLIArgs

Type Alias: CLIArgs ​

CLIArgs = object & Record<string, string | string[] | boolean | number>

Defined in: src/runner/types.ts:10

Parsed command-line arguments

Type Declaration ​

_? ​

optional _?: string[]

Unparsed arguments

bail? ​

optional bail?: boolean

Stop executing further tests as soon as a single test failure occurs. When enabled, subsequent suites, groups, and tests will be skipped.

bailLayer? ​

optional bailLayer?: "test" | "group" | "suite"

The granularity or layer at which the runner bails on failure (e.g., 'test', 'group', 'suite'). Allows control over whether bailing skips only the remaining tests in the current group/suite, or halts the entire runner process.

browser? ​

optional browser?: string | string[]

Browser(s) to run tests in

concurrency? ​

optional concurrency?: number | "auto"

Concurrency level

coverage? ​

optional coverage?: boolean

Whether to enable code coverage

coverageDir? ​

optional coverageDir?: string

Directory where coverage reports are written

coverageReporters? ​

optional coverageReporters?: string | string[]

List of coverage reporters to generate

failed? ​

optional failed?: boolean

Whether to run only failed tests

files? ​

optional files?: string | string[]

Test files to filter by

groups? ​

optional groups?: string | string[]

Test groups to filter by

help? ​

optional help?: boolean

Whether to show help

list? ​

optional list?: boolean

Whether to output the list of suites and tests

matchAll? ​

optional matchAll?: boolean

Whether to match all tests

parallel? ​

optional parallel?: boolean

Whether to enable parallel execution

reporters? ​

optional reporters?: string | string[]

Reporters to use

retries? ​

optional retries?: string

Number of retries

suites? ​

optional suites?: string | string[]

Test suites to filter by

tags? ​

optional tags?: string | string[]

Test tags to filter by

tests? ​

optional tests?: string | string[]

Test names to filter by

timeout? ​

optional timeout?: string

Test timeout

verbose? ​

optional verbose?: boolean

Whether to enable verbose mode

viteConfig? ​

optional viteConfig?: string

Path to Vite configuration file