Vitest · Method
vi.setConfig
vi.defineHelper creates a reusable assertion helper. Failed assertions point to the line that called the helper, not the helper's internal code.
Last updated
- Since
- 4.1.0
Syntax
function defineHelper<F extends (...args: any) => any>(fn: F): FIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
viexpectexpect.soft()