Optional
name: stringThe name of the suite, which is displayed when reporting test results.
Defaults to the name
property of fn
, or '<anonymous>'
if fn
does not have a name.
Optional
options: TestOptionsConfiguration options for the suite. This supports the same options as test.
Optional
fn: SuiteFnThe suite function declaring nested tests and suites. The first argument to this function is a SuiteContext object.
Immediately fulfilled with undefined
.
The suite()
function is imported from the node:test
module.
Optional
name: stringThe name of the suite, which is displayed when reporting test results.
Defaults to the name
property of fn
, or '<anonymous>'
if fn
does not have a name.
Optional
fn: SuiteFnThe suite function declaring nested tests and suites. The first argument to this function is a SuiteContext object.
Immediately fulfilled with undefined
.
The suite()
function is imported from the node:test
module.
Optional
options: TestOptionsConfiguration options for the suite. This supports the same options as test.
Optional
fn: SuiteFnThe suite function declaring nested tests and suites. The first argument to this function is a SuiteContext object.
Immediately fulfilled with undefined
.
The suite()
function is imported from the node:test
module.
Optional
fn: SuiteFnThe suite function declaring nested tests and suites. The first argument to this function is a SuiteContext object.
Immediately fulfilled with undefined
.
The
suite()
function is imported from thenode:test
module.