Questions tagged [redux-saga-test-plan]

redux-saga-test-plan is a library for unit testing and integration testing code written with redux-saga, which is a front-end library for application state management written in JavaScript, commonly used with React. This tag should be used for question related to writing tests with this library.

The library redux-saga-test-plan is for unit testing and integration testing code written with redux-saga, which is a front-end library for application state management written in JavaScript, commonly used with React.

This tag should be used for question related to writing tests with this library.

The official documentation for redux-saga-test-plan can be found at http://redux-saga-test-plan.jeremyfairbank.com/

The source can be found at https://github.com/jfairbank/redux-saga-test-plan

48 questions
0
votes
1 answer

Redux Saga Unit Testing with jest: How to sustain the object received by take in the test?

I'm new to Unit testing, Redux and Redux Saga. I use it with React Native. I just implemented my loginFlow just like the one described in the docs of Redux Saga: function* loginFlow() { while (true) { const {user, password} = yield…
J. Hesters
  • 13,117
  • 31
  • 133
  • 249
0
votes
1 answer

how to test saga yield watcher parallel calls in jest

I want to test my saga i'm able to test individual saga calls but how can i test my watcher saga using jest export default function* saga() { yield [ takeLatest(dataTypeActions.ACTION1, fetchDataType), takeLatest(sourceActions.ACTION2,…
kumar
  • 109
  • 2
  • 13
0
votes
1 answer

Redux Saga: Testing plain javascript function inside my saga with redux-saga-test-plan and jest

I am trying to figure out how it is that I can test my saga that contains a regular ol' javascript function in it. Here is my saga: export function* watchGetActivities() { yield takeLatest(actionTypes.GET_ACTIVITIES,…
1 2 3
4