Const
Asserts that ALL yielded values individually satisfy the expected shape.
Uses partial/satisfy semantics. Every item yielded must match.
expect([{ a: 1 }, { a: 2, b: 3 }], 'to yield items satisfying', { a: z.number(),}); // passesexpect([1, 2, 3], 'to yield items satisfying', z.number()); // passes Copy
expect([{ a: 1 }, { a: 2, b: 3 }], 'to yield items satisfying', { a: z.number(),}); // passesexpect([1, 2, 3], 'to yield items satisfying', z.number()); // passes
iterable-to-yield-items-satisfying-any
iterable
Asserts that ALL yielded values individually satisfy the expected shape.
Uses partial/satisfy semantics. Every item yielded must match.