温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/test/default/after
点击访问原文链接

function after | Node.js node:test module | Bun

function after | Node.js node:test module | BunBuildDocsReferenceGuidesBlogDiscord/node:test/default/afterFafter

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:test/default/afterFafter

function

test.default.after { after(() => console.log('finished running tests')); it('is a subtest', () => { assert.ok('some relevant assertion here'); }); }); ```" data-algolia-static="false" data-algolia-merged="false" data-type="Function">function after(fn?: HookFn,options?: HookOptions): void;This function creates a hook that runs after executing a suite.

describe('tests', async () => { after(() => console.log('finished running tests')); it('is a subtest', () => { assert.ok('some relevant assertion here'); }); }); @param fnThe hook function. If the hook uses callbacks, the callback function is passed as the second argument.

@param optionsConfiguration options for the hook.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录