RunOptions
Properties
If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file. If true
, it would run os.availableParallelism() - 1
test files in parallel. If false
, it would only run one test file at a time.
An array containing the list of files to run. If omitted, files are run according to the test runner execution model.
Sets inspector port of test child process. If a nullish value is provided, each process gets its own port, incremented from the primary's process.debugPort
.
A function that accepts the TestsStream
instance and can be used to setup listeners before any tests are run.
Allows aborting an in-progress test execution.
If provided, only run tests whose name matches the provided pattern. Strings are interpreted as JavaScript regular expressions.
A String, RegExp or a RegExp Array, that can be used to exclude running tests whose name matches the provided pattern. Test name patterns are interpreted as JavaScript regular expressions. For each test that is executed, any corresponding test hooks, such as beforeEach()
, are also run.