jfairbank / redux-saga-test-plan

Test Redux Saga with an easy plan.
http://redux-saga-test-plan.jeremyfairbank.com
MIT License
1.25k stars 127 forks source link

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

Open Eljoy opened 3 years ago

Eljoy commented 3 years ago
  ● 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 commented 3 years ago

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

vadympetryshyn commented 3 years ago

The same