if

Bun

Symbol

Test.if

if(condition: boolean): (label: string, fn: () => void | Promise<unknown> | (done: (err?: unknown) => void) => void, options?: number | TestOptions) => void

Runs this test, if condition is true.

This is the opposite of test.skipIf().

@param condition

if the test should run