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:43

Parsed command-line arguments

Type Declaration

_?

optional _?: string[]

Unparsed arguments

bail?

optional bail?: boolean

Whether to bail

bailLayer?

optional bailLayer?: string

Bail layer

browser?

optional browser?: string | string[]

Browser(s) to run tests in

concurrency?

optional concurrency?: string | number

Concurrency level

coverage?

optional coverage?: boolean

Whether to enable code coverage

failed?

optional failed?: boolean

Whether to run only failed tests

files?

optional files?: string | string[]

Test files to filter by

forceExit?

optional forceExit?: boolean

Whether to force exit

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

listPinned?

optional listPinned?: boolean

Whether to list pinned tests

matchAll?

optional matchAll?: boolean

Whether to match all tests

parallel?

optional parallel?: boolean

Whether to disable parallel execution

reporters?

optional reporters?: string | string[]

Reporters to use

retries?

optional retries?: string

Number of retries

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