Array of synchronous assertion objects that define the available assertion logic for embeddable functions
// Create embeddable assertion functions
const isString = expect.it('to be a string');
const isPositive = expect.it('to be greater than', 0);
// Use within 'to satisfy' patterns
expect(user, 'to satisfy', {
name: isString,
age: isPositive,
email: /\S+@\S+/,
});
Creates embeddable assertion functions that can be used with
'to satisfy'
.This type generates a union of all possible
expect.it
function signatures based on the available synchronous assertions. Each assertion contributes its own function signature to create embeddable executors that can be used within object patterns for complex validation scenarios.The resulting functions are designed to be used exclusively within
'to satisfy'
assertion contexts, where they provide type-safe pattern matching for nested object structures. Direct execution of these functions outside of their intended context is not supported.