The suite() function is imported from the node:test module.
Search the reference...
/
namespace
The name of the suite, which is displayed when reporting test results. Defaults to the name property of fn, or '
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 '
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.
This flips the pass/fail reporting for a specific test or suite: a flagged test case must throw in order to pass, and a flagged test case that does not throw fails.
This flips the pass/fail reporting for a specific test or suite: a flagged test case must throw in order to pass, and a flagged test case that does not throw fails.
This flips the pass/fail reporting for a specific test or suite: a flagged test case must throw in order to pass, and a flagged test case that does not throw fails.
This flips the pass/fail reporting for a specific test or suite: a flagged test case must throw in order to pass, and a flagged test case that does not throw fails.
Shorthand for marking a suite as only. This is the same as calling suite with options.only set to true.
Shorthand for marking a suite as only. This is the same as calling suite with options.only set to true.
Shorthand for marking a suite as only. This is the same as calling suite with options.only set to true.
Shorthand for marking a suite as only. This is the same as calling suite with options.only set to true.
Shorthand for skipping a suite. This is the same as calling suite with options.skip set to true.
Shorthand for skipping a suite. This is the same as calling suite with options.skip set to true.
Shorthand for skipping a suite. This is the same as calling suite with options.skip set to true.
Shorthand for skipping a suite. This is the same as calling suite with options.skip set to true.
Shorthand for marking a suite as TODO. This is the same as calling suite with options.todo set to true.
Shorthand for marking a suite as TODO. This is the same as calling suite with options.todo set to true.
Shorthand for marking a suite as TODO. This is the same as calling suite with options.todo set to true.
Shorthand for marking a suite as TODO. This is the same as calling suite with options.todo set to true.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →namespace suite | Node.js node:test module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for namespace node:test.default.suite | Bun