Open fkruegel opened 6 years ago
It seems that expectSaga returns a promise, which is rejected when there is an exception in the saga.
So
await expectSaga(otherSaga)
.run();
fails, as does:
expectSaga(otherSaga)
.catch((e) => fail(e))
.run();
@xli1000 What is fail
in catch((e) => fail(e))
?
Tests should fail when they throw an exception. However, in the following test
only the first test fails as expected, whereas the second test (where the exception is thrown after the first yield instead of before) succeeds. This behavior does not seem to be intended. I'm using redux-saga 0.16.0 and redux-saga-test-plan 3.6.0.