Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting TypeError: (0 , _reduxSaga.stdChannel) is not a function on simple example #371

Open
gaurav341 opened this issue Aug 12, 2021 · 1 comment

Comments

@gaurav341
Copy link

Logs are

TypeError: (0 , _reduxSaga.stdChannel) is not a function

at expectSaga (/Users/gaurav.singh/Documents/projects/my-project/node_modules/redux-saga-test-plan/lib/expectSaga/index.js:123:47)
at Object.<anonymous> (/Users/gaurav.singh/Documents/projects/my-project/src/redux/common/init/test/init.reducer.test.js:16:16)
at Object.asyncJestTest (/Users/gaurav.singh/Documents/projects/my-project/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)
at /Users/gaurav.singh/Documents/projects/my-project/node_modules/jest-jasmine2/build/queueRunner.js:43:12
at new Promise (<anonymous>)
at mapper (/Users/gaurav.singh/Documents/projects/my-project/node_modules/jest-jasmine2/build/queueRunner.js:26:19)
at /Users/gaurav.singh/Documents/projects/my-project/node_modules/jest-jasmine2/build/queueRunner.js:73:41
at processTicksAndRejections (internal/process/task_queues.js:97:5)
@ggbell
Copy link

ggbell commented Jun 10, 2022

For anyone still facing this issue, this TypeError is thrown if you have an existing mock of redux-saga, e.g.

jest.mock('redux-saga', () => ...);

Try removing this and the error should disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants