Const Functionconst map = new Map([
[{ id: 1 }, 'a'],
[{ id: 2 }, 'b'],
]);
expect(map, 'to have keys exhaustively satisfying', { id: z.number() }); // fails — extra strict
expect(map, 'to have props exhaustively satisfying', { id: z.number() }); // alias
expect(map, 'to have fields exhaustively satisfying', {
id: z.number(),
}); // alias
Asserts that ALL keys in a Map individually match with deep equality.
Uses strict deep-equality semantics — every key must exactly match. Empty Maps pass vacuously.