Vitest · Function
suite
test defines a Vitest test case from a name and a function of expectations. It supports options such as timeouts, retries, skipping, expected failures, repetition, and concurrency.
Last updated
Syntax
function test(name: string | Function, body?: () => unknown, timeout?: number): void
function test(name: string | Function, options: TestOptions, body?: () => unknown): voidIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ittest.skiptest.onlytest.todotest.failstest.concurrenttest.extendtest.runIf