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

Error with Jest #217

stefanfrede opened this Issue Sep 2, 2018 · 2 comments


None yet
2 participants
Copy link

stefanfrede commented Sep 2, 2018

I use Jest and if I run a test with redux-saga-test-plan I get the error: Cannot find module 'redux-saga/lib/internal/sagaHelpers' from 'index.js'.

I used the most simple example I could find:

import { expectSaga } from 'redux-saga-test-plan';

function* saga() {
  return { hello: 'world' };

it('returns a greeting', () => {
  return expectSaga(saga)
    .returns({ hello: 'world' })

This comment has been minimized.

Copy link

giancarlo88 commented Sep 21, 2018

I had the exact same issue. Turns out the latest beta release of redux-saga (v1.0.0-beta.2) was to blame, and after downgrading to v1.0.0-beta.1 the error went away.

You may want to fix the version in package.json (remove the ^) as even though it was a minor release it had a breaking change.

Should I raise this as a separate issue?

Edit: The issue (and underlying cause) was raised #219.


This comment has been minimized.

Copy link

stefanfrede commented Oct 5, 2018

I guess if it is not redux-saga-test-plan related I can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.