When testing code that involves randomness, it's common to mock Math.random to return deterministic values. However, this breaks zod/v4 when parsing object schemas with more than one key. It appears ...
The Mozilla Firefox Browser Console generates a floating point number with 17 positions after decimal points. Math.random(); // 0.45065673763833813 // 0.12345678901234567 With a random number of ...