Vitest · Module
soft
Vitest's expect creates assertions about values and behavior. It also supports soft assertions, polling, snapshots, and checks for calls on spies.
Last updated
Syntax
expect<T>(actual: T, message?: string): Assertion<void, T>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expect.softexpect.polltoHaveBeenCalledtoHaveBeenCalledTimesvi.spyOn