A universal approach to mocking with continuations
SMRTR summary
Defunctionalize continuations into an Effect type so your test runner captures effects instead of executing them, letting you assert call order, arguments, and resume values without mocking libraries or async test runners.
SMRTR provides this summary for quick context. The original article belongs to Lobsters.
Read the original article