How to mock an anonymous function using jest in redux-saga-test-plan
I’m trying to test a saga using redux-saga-test-plan, but faced a problem of passing an anonymous function as an argument in the “call” effect.
I’m trying to test a saga using redux-saga-test-plan, but faced a problem of passing an anonymous function as an argument in the “call” effect.