Testing Effects and Service Dependencies in Effect Typescript

How do people typically test for Effects having been executed? Specifically, I want to test a service A which takes in service B as a dependency. I want to ensure that certain functions on B are being called by A under certain circumstances. The functions are Effect.fn()'s, i.e. they return Effects which A yields. Do people somehow use Jest/Vitest mock.fn()'s for this? Are there any ergonomic patterns I am missing?
Was this page helpful?