Fork me on GitHub
#malli
<
2022-04-08
>
Ferdinand Beyer07:04:19

What’s the preferred way of testing schema compliance in tests? Works but does not give helpful failure messages:

(is (m/validate ,,,))
Better, but not super intuitive:
(is (nil? (m/explain ,,,)))
Is there some other way that I’m missing?

Ben Sless07:04:36

Instrument functions and use generators