因此,我试图使用jest从call中模拟redux-saga/effects函数,它似乎抛出了一个错误,说的是call is not declared configurable。import * as mockreduxSagaEffects from 'redux-saga/effects';
test('calls all the appropriate actions', async () =>
因此,我正在尝试使用runSaga函数来测试一个redux传奇。这个传奇故事给出了对API的调用,并通过调用动作将其响应存储在状态中。在存储之后,我将使用选择器检索存储的数据并执行一些操作。... do something with newList but newList is emptyimport { runSaga } from 'redux-saga';
import * as reduxSagaEffects