in saga file. generator function looks like:
function* handleCall(){
yield delay(1000);
yield put(act.call());
}
I would like to test delay(1000) in test.js file
in saga file. generator function looks like:
function* handleCall(){
yield delay(1000);
yield put(act.call());
}
I would like to test delay(1000) in test.js file
Copyright © 2021 Jogjafile Inc.
Followling the Unit Testing docs. We can use
testSagafunction creates a mock saga for you to assert effects on.E.g.
saga.ts:actionCreators.ts:saga.test.ts:test result: