wasp-lang / haskell-handbook

Best practices on how to be efficient with Haskell in production
92 stars 5 forks source link

[New topic] Mocking IO in unit tests #2

Open Martinsos opened 3 years ago

Martinsos commented 2 years ago

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

Martinsos commented 1 year ago

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.