function suite
Overload 1
#suite(): Promise<void>The suite() function is imported from the node:test module.
Parameters #
#name: string optional
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: TestOptions optional
Configuration options for the suite. This supports the same options as test.
The suite function declaring nested tests and suites. The first argument to this function is a SuiteContext object.
Return Type #
Promise<void> Immediately fulfilled with undefined.
Overload 2
Overload 3
#suite(options?: TestOptions,fn?: SuiteFn,): Promise<void>Overload 4
namespace suite
Functions #
f
suite.only
Shorthand for marking a suite as only. This is the same as calling suite with options.only set to true.
f
suite.skip
Shorthand for skipping a suite. This is the same as calling suite with options.skip set to true.
f
suite.todo
Shorthand for marking a suite as TODO. This is the same as calling suite with options.todo set to true.