I was following along with the beginner tutorial when I realized that running npm test on the sagas branch throws the following error:
$ npm test
> redux-saga-beginner-tutorial@0.0.0 test /Users/ryan/sites/redux-saga-beginner-tutorial
> babel-node sagas.spec.js | tap-spec
incrementAsync Saga test
/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/@redux-saga/core/dist/io-1d6eccda.js:37
throw new Error(error);
^
Error: call: argument fn is undefined or null
at check (/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/@redux-saga/core/dist/io-1d6eccda.js:37:11)
at validateFnDescriptor (/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/@redux-saga/core/dist/io-1d6eccda.js:459:3)
at call (/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/@redux-saga/core/dist/io-1d6eccda.js:528:5)
at Test.<anonymous> (/Users/ryan/sites/redux-saga-beginner-tutorial/sagas.spec.js:12:5)
at Test.bound [as _cb] (/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/tape/lib/test.js:80:32)
at Test.run (/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/tape/lib/test.js:96:10)
at Test.bound [as run] (/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/tape/lib/test.js:80:32)
at Immediate.next (/Users/ryan/sites/redux-saga-beginner-tutorial/node_modules/tape/lib/results.js:83:19)
at processImmediate (internal/timers.js:439:21)
at process.topLevelDomainCallback (domain.js:126:23)
npm ERR! Test failed. See above for more details
This PR simply updates the imports so the tests work.
I was following along with the beginner tutorial when I realized that running
npm test
on thesagas
branch throws the following error:This PR simply updates the imports so the tests work.