Using `vi.fn` within an effect generator in Vitest

Is there a possibility to use vitests vi.fn within an effect gen? If I just use vi.fn on the function it doesn't seem to be registered as called.
Was this page helpful?