Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloneableGenerator only keeps next calls in its history #2005

Open
nobu-k opened this issue Jan 28, 2020 · 0 comments
Open

cloneableGenerator only keeps next calls in its history #2005

nobu-k opened this issue Jan 28, 2020 · 0 comments

Comments

@nobu-k
Copy link

nobu-k commented Jan 28, 2020

Description

cloneableGenerator doesn't keep calls of throw and return in its history (https://github.com/redux-saga/redux-saga/blob/master/packages/testing-utils/src/index.js#L17). As a result, when testing a code flow that depends on exceptions, clone doesn't work as expected because it skips throw and return calls previously performed.

I created this issue as a question because I wasn't sure if this was intentional or a bug. Is this by design?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants