haskell-handbook icon indicating copy to clipboard operation
haskell-handbook copied to clipboard

[New topic] Mocking IO in unit tests

Open Martinsos opened this issue 4 years ago • 2 comments
trafficstars

Martinsos avatar May 04 '21 13:05 Martinsos

This seems to be the leading library at the moment, and nicely written: https://github.com/cdsmith/HMock .

Martinsos avatar Jul 13 '22 14:07 Martinsos

Here is one piece of our code where do it properly I think: https://github.com/wasp-lang/wasp/pull/1288/files . We don't use any library though, but it was simple example.

Martinsos avatar Jun 26 '23 15:06 Martinsos