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

TestContext.runOnly method | Node.js node:test module | Bun

TestContext.runOnly method | Node.js node:test module | BunBuildDocsReferenceGuidesBlogDiscord/node:test/default/TestContext/runOnlyMrunOnly

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:test/default/TestContext/runOnlyMrunOnly

method

test.default.TestContext.runOnly { // The test context can be set to run subtests with the 'only' option. t.runOnly(true); return Promise.all([ t.test('this subtest is now skipped'), t.test('this subtest is run', { only: true }), ]); }); ```" data-algolia-static="false" data-algolia-merged="false" data-type="Method">runOnly(shouldRunOnlyTests: boolean): void;

If shouldRunOnlyTests is truthy, the test context will only run tests that have the only option set. Otherwise, all tests are run. If Node.js was not started with the --test-only command-line option, this function is a no-op.

test('top level test', (t) => {
// The test context can be set to run subtests with the 'only' option.
t.runOnly(true);
return Promise.all([
t.test('this subtest is now skipped'),
t.test('this subtest is run', { only: true }),
]);
});
@param shouldRunOnlyTests

Whether or not to run only tests.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

TestContext.runOnly method | Node.js node:test module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method node:test.default.TestContext.runOnly | Bun