Shorthand for marking a suite as only. This is the same as calling suite with options.only set to true.
function only | Node.js node:test module | Bun BuildDocsReferenceGuidesBlogDiscord/node:test/default/suite/onlyFonly BuildDocsReferenceGuidesBlogDiscord /node:test/default/suite/onlyFonly test.default.suite.onlyfunction only(name?: string,options?: TestOptions,fn?: SuiteFn): Promisevoid>; function only(name?: string,fn?: SuiteFn): Promisevoid>; function only(options?: TestOptions,fn?: SuiteFn): Promisevoid>; function only(fn?: SuiteFn): Promisevoid>;
Search the reference...
/
function
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.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →function only | Node.js node:test module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:test.default.suite.only | Bun