redux-saga-test-plan icon indicating copy to clipboard operation
redux-saga-test-plan copied to clipboard

Test Redux Saga with an easy plan.

Results 104 redux-saga-test-plan issues
Sort by recently updated
recently updated
newest added

In the latest version of redux saga (^0.16.0) I was getting a console warning about how importing` takeEvery` from `redux-saga` was deprecated and that it needed to be from `redux-saga/effects`....

I have the following setup in my code. My problem is that the sagas inside `sagaCallee` were not intercepted by my providers. However, for some reason I can't even make...

Hi everyone, thanks for this great library. In my project I am getting bellow error on `await expectSaga` `Refactor this redundant 'await' on a non-promise.sonarlint(typescript:S4123)` `saga.test.ts` ``` it('validate watchFetch', async...

My Test: ``` import { testSaga } from 'redux-saga-test-plan'; import { takeLatest } from 'redux-saga/effects'; import { subscribeSaga } from './sagas' function* watchSelectSaga() { yield takeLatest('SET', subscribeSaga); } it('test saga',...

* [ ] Many matchers allow partial matching using the `like` flavor, but that is not at all documented. They are [here](https://github.com/jfairbank/redux-saga-test-plan/blob/master/src/expectSaga/matchers/index.js). Example: ```js await expectSaga(saga, triggerAction) .put.like(routine.fulfill(fulFillPayload)) .run(); ```

I am trying to test a pretty straight forward flow that is giving me some issues. Basically I have `fork` a `delay`, complete some actions then `join` the `delay` back...

enhancement

Not all the generator functions pass the type check when using `expectSaga`. Sometimes unexpected type error is raised if the yields in the function are mixed by saga effects and...

Is there a recommended way to test sagas that throw errors? I'm trying to create a test for this function: ```js const waitForSocketChannelEvent = function* (socketConnectChannel, delayTimeout = 3000) {...

I have the below two tests ```import {expectSaga} from 'redux-saga-test-plan'; import {put, select, takeEvery} from 'redux-saga/effects'; import {combineReducers} from 'redux'; export default class SessionReducer { public static readonly _initialState: any...

I have this test ``` expectSaga(sessionHandoffHandler) //@ts-ignore .withReducer(rootReducer) .dispatch(handoffAction) .put({type: Actions.SESSION_STARTED}) .run() .then((result: {storeState: RootState}) => { // console.log('************', result); let session = sessionState(result.storeState); expect(session.status).toEqual(SessionStatusEnum.HandingOff); expect(session.sensors.length).toEqual(4); expect(session.currentScreen).toEqual('HandoffScreen'); }) ``` I...