Open zl-fire opened 4 years ago
You shouldn't need to import delay
from redux-saga/effects
. Instead, make sure you are adding the export
keyword before the "delay" defined in the sagas.js
file. eg
export const delay = (ms = 1000) => new Promise((res) => setTimeout(res, ms));
执行npm run test时报错:Error: call: argument fn is undefined or null
如下修改代码就正常了