标签: jestjs saga
如何以这种方式编写测试用例:
const db = new DatabaseProvider();
//对于每个功能,如何创建测试用例:
export function* watchTagSavedData() { yield takeLatest(Actions.GET_TAG_SAVED_INIT, function* (action) { yield call(fetchTagSavedData, action.data); }); }