Factory for creating multiple assertion instances from a template. Useful for repeating assertions or generating dynamic assertion collections.
Con extends Record<string, unknown>
- The context type containing shared state
private
readonly
_assertions: Array<() => Assertion<Con>>
readonly
assertions: Array<() => Assertion<Con>>
Gets all assertion factory functions.
times<Con2 extends Record<string, unknown>>(): AssertionFactory<Con2>
Creates an assertion factory that repeats an assertion multiple times.