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

Describe.skipIf method | bun:test module | Bun

Describe.skipIf method | bun:test module | BunBuildDocsReferenceGuidesBlogDiscord/bun:test/Describe/skipIfMskipIf

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/bun:test/Describe/skipIfMskipIf

method

test.Describe.skipIfskipIf(condition: boolean): DescribeT>;Skips this group of tests, if condition is true.

@param conditionif these tests should be skipped

Referenced typesinterface DescribeT extends Readonlyany[]>>Describes a group of related tests.

function sum(a, b) { return a + b; } describe("sum()", () => { test("can sum two values", () => { expect(sum(1, 1)).toBe(2); }); }); concurrent: DescribeT>Marks this group of tests to be executed concurrently.

only: DescribeT>Skips all other tests, except this group of tests.

serial: DescribeT>Marks this group of tests to be executed serially (one after another), even when the --concurrent flag is used.

skip: DescribeT>Skips this group of tests.

todo: DescribeT>Marks this group of tests as to be written or to be fixed.

eachT extends any[]>(table: readonly T[]): Describe[...T[]]>;eachT>(table: T[]): Describe[T]>;if(condition: boolean): DescribeT>;Runs this group of tests, only if condition is true.

This is the opposite of describe.skipIf().

@param conditionif these tests should run

skipIf(condition: boolean): DescribeT>;Skips this group of tests, if condition is true.

@param conditionif these tests should be skipped

todoIf(condition: boolean): DescribeT>;Marks this group of tests as to be written or to be fixed, if condition is true.

@param conditionif these tests should be skipped

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 →

智能索引记录