redux-saga-test-plan icon indicating copy to clipboard operation
redux-saga-test-plan copied to clipboard

testSaga throws TypeError

Open KaHo2912 opened this issue 5 years ago • 2 comments

I am just trying to set up saga tests for a react project. When running the tests it directly fails at this line: const saga = testSaga(sagaName);

The error I get is: TypeError: Cannot read property 'apply' of undefined

Maybe this is something similar to #255 that is already fixed. I double checked to be sure, that the fix #258 is present in my version of redux-test-saga-plan and it is as I am using the latest beta3.

Would be nice, if you can give me a hint or point me in the right direction on what could be wrong here.

KaHo2912 avatar May 17 '19 10:05 KaHo2912

Experiencing the same issue. Would greatly appreciate some confirmation about whether or not this is a bug, and if there is a workaround or fix in progress.

ttannis avatar Jun 17 '19 21:06 ttannis

@KaHo2912 Sorry for coming back to you so late. Are you still have this issue? If yes. do you mind to share your test case, code as well as package.json.

jp928 avatar Sep 06 '19 09:09 jp928