Package-level declarations

Functions

Link copied to clipboard
suspend fun only(): Void
suspend fun only(fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun only(name: String = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun only(options: TestOptions = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun only(name: String = undefined.unsafeCast<Nothing>(), options: TestOptions = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
Link copied to clipboard
external fun onlyAsync(): Promise<Void>
external fun onlyAsync(fn: TestFn = definedExternally): Promise<Void>
external fun onlyAsync(name: String = definedExternally, fn: TestFn = definedExternally): Promise<Void>
external fun onlyAsync(options: TestOptions = definedExternally, fn: TestFn = definedExternally): Promise<Void>

external fun onlyAsync(name: String = definedExternally, options: TestOptions = definedExternally, fn: TestFn = definedExternally): Promise<Void>

Shorthand for marking a test as only. This is the same as calling {@link it} with options.only set to true.

Link copied to clipboard
suspend fun skip(): Void
suspend fun skip(fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun skip(name: String = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun skip(options: TestOptions = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun skip(name: String = undefined.unsafeCast<Nothing>(), options: TestOptions = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
Link copied to clipboard
external fun skipAsync(): Promise<Void>
external fun skipAsync(fn: TestFn = definedExternally): Promise<Void>
external fun skipAsync(name: String = definedExternally, fn: TestFn = definedExternally): Promise<Void>
external fun skipAsync(options: TestOptions = definedExternally, fn: TestFn = definedExternally): Promise<Void>

external fun skipAsync(name: String = definedExternally, options: TestOptions = definedExternally, fn: TestFn = definedExternally): Promise<Void>

Shorthand for skipping a test. This is the same as calling {@link it} with options.skip set to true.

Link copied to clipboard
suspend fun todo(): Void
suspend fun todo(fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun todo(name: String = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun todo(options: TestOptions = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
suspend fun todo(name: String = undefined.unsafeCast<Nothing>(), options: TestOptions = undefined.unsafeCast<Nothing>(), fn: TestFn = undefined.unsafeCast<Nothing>()): Void
Link copied to clipboard
external fun todoAsync(): Promise<Void>
external fun todoAsync(fn: TestFn = definedExternally): Promise<Void>
external fun todoAsync(name: String = definedExternally, fn: TestFn = definedExternally): Promise<Void>
external fun todoAsync(options: TestOptions = definedExternally, fn: TestFn = definedExternally): Promise<Void>

external fun todoAsync(name: String = definedExternally, options: TestOptions = definedExternally, fn: TestFn = definedExternally): Promise<Void>

Shorthand for marking a test as TODO. This is the same as calling {@link it} with options.todo set to true.