agiledigital / typed-redux-saga

An attempt to bring better TypeScript typing to redux-saga.
MIT License
315 stars 33 forks source link

Integration with redux-saga-test-plan #651

Open rumbogs opened 2 years ago

rumbogs commented 2 years ago

I've been using https://github.com/jfairbank/redux-saga-test-plan extensively in a project for easier testing purposes. Seems that typed-redux-saga breaks our tests since the API doesn't work with generator delegation.

Are there any solutions available?

YuesIt17 commented 2 years ago

Also faced this problem. Redux-saga-test-plan is not working with typed-redux-saga. Error message in test: Cannot find module 'typed-redux-saga/dist'.

jeanregisser commented 1 year ago

We've just completed the switch to typed-redux-saga in a codebase using redux-saga-test-plan extensively too.

No problems to report. We didn't use macros as it wasn't working right with jest code coverage. The important part was to keep importing the redux-saga/effects in tests using redux-saga-test-plan.

See it all here: https://github.com/valora-inc/wallet/pull/3961