2. Testing Effectful CodeΒΆ

The most useful testing tool you’ll want to familiarize yourself with is effect.testing.SequenceDispatcher. Using this with effect.sync_perform() in your unit tests will allow you to perform your effects while both ensuring that the expected intents are performed, as well as provide the results of those effects.