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

TypeError: Cannot read property 'TAKE' of undefined #367

Open
Eljoy opened this issue May 25, 2021 · 2 comments
Open

TypeError: Cannot read property 'TAKE' of undefined #367

Eljoy opened this issue May 25, 2021 · 2 comments

Comments

@Eljoy
Copy link

Eljoy commented May 25, 2021

  ● Test suite failed to run

    TypeError: Cannot read property 'TAKE' of undefined

      at Object.<anonymous> (node_modules/redux-saga-test-plan/lib/utils/asEffect.js:22:49)
      at Object.<anonymous> (node_modules/redux-saga-test-plan/lib/expectSaga/parseEffect.js:14:17)

"redux-saga": "^1.1.3"
"redux-saga-test-plan": "^4.0.1"

  test("promptOauthSignInFlow", () => {
    return expectSaga(authSaga)
      .run()
  });
function* authSaga() {
  yield all([
    takeLatest(signIn.request, promptOauthSignInFlow),
  ])
}

function* promptOauthSignInFlow() {
  try {
    yield call([authRepository(), 'signIn'])
  } catch (e) {
    yield put(signIn.failure(e))
  }
}
  test("promptOauthSignInFlow", () => {
    return expectSaga(authSaga)
      .run()
  });

@IgorGoloborodko1
Copy link

Same issue. Redux-saga 0.15, redux-saga-test-plan 4.0.1. Did anyone figure this one out?

@vadympetryshyn
Copy link

The same

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

No branches or pull requests

3 participants