The suite()
function is imported from the node:test
module.
namespace
test.suite
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.
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.
Immediately fulfilled with undefined
.
The suite()
function is imported from the node:test
module.
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.
The 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.
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.
Immediately fulfilled with undefined
.
The suite()
function is imported from the node:test
module.
The suite function declaring nested tests and suites. The first argument to this function is a SuiteContext object.
Immediately fulfilled with undefined
.
namespace suite
- name?: string,options?: TestOptions,fn?: SuiteFn): Promise<void>;
Shorthand for marking a suite as
only
. This is the same as calling suite withoptions.only
set totrue
.name?: string,fn?: SuiteFn): Promise<void>;Shorthand for marking a suite as
only
. This is the same as calling suite withoptions.only
set totrue
.options?: TestOptions,fn?: SuiteFn): Promise<void>;Shorthand for marking a suite as
only
. This is the same as calling suite withoptions.only
set totrue
.fn?: SuiteFn): Promise<void>;Shorthand for marking a suite as
only
. This is the same as calling suite withoptions.only
set totrue
. - name?: string,options?: TestOptions,fn?: SuiteFn): Promise<void>;
Shorthand for skipping a suite. This is the same as calling suite with
options.skip
set totrue
.name?: string,fn?: SuiteFn): Promise<void>;Shorthand for skipping a suite. This is the same as calling suite with
options.skip
set totrue
.options?: TestOptions,fn?: SuiteFn): Promise<void>;Shorthand for skipping a suite. This is the same as calling suite with
options.skip
set totrue
.fn?: SuiteFn): Promise<void>;Shorthand for skipping a suite. This is the same as calling suite with
options.skip
set totrue
. - name?: string,options?: TestOptions,fn?: SuiteFn): Promise<void>;
Shorthand for marking a suite as
TODO
. This is the same as calling suite withoptions.todo
set totrue
.name?: string,fn?: SuiteFn): Promise<void>;Shorthand for marking a suite as
TODO
. This is the same as calling suite withoptions.todo
set totrue
.options?: TestOptions,fn?: SuiteFn): Promise<void>;Shorthand for marking a suite as
TODO
. This is the same as calling suite withoptions.todo
set totrue
.fn?: SuiteFn): Promise<void>;Shorthand for marking a suite as
TODO
. This is the same as calling suite withoptions.todo
set totrue
.