Vitest · Function
it
test defines a named test case and runs its expectations. It can also control timeout and test behavior through options or chained helpers.
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.concurrenttest.failstest.eachtest.skipIf