suiteAsync
external fun suiteAsync(name: String = definedExternally, options: TestOptions = definedExternally, fn: SuiteFn = definedExternally): Promise<Void>(source)
The suite()
function is imported from the node:test
module.
Return
Immediately fulfilled with undefined
.
Since
v20.13.0
Parameters
name
The 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.
options
Configuration options for the suite. This supports the same options as {@link test}.
fn
The suite function declaring nested tests and suites. The first argument to this function is a {@link SuiteContext} object.
external fun suiteAsync(name: String = definedExternally, fn: SuiteFn = definedExternally): Promise<Void>(source)
external fun suiteAsync(options: TestOptions = definedExternally, fn: SuiteFn = definedExternally): Promise<Void>(source)