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

moxios.requests.mostRecent() is returning undefined #78

Open
reactsaurabh opened this issue Apr 16, 2020 · 8 comments
Open

moxios.requests.mostRecent() is returning undefined #78

reactsaurabh opened this issue Apr 16, 2020 · 8 comments

Comments

@reactsaurabh
Copy link

reactsaurabh commented Apr 16, 2020

I am using Webpack in React (16.12)and after running test getting below error
I am testing with Jest and enzyme

Error: Uncaught [TypeError: Cannot read property 'respondWith' of undefined]
at reportException (/Users/saurabh/Desktop/project/rewards-app-fe/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at Timeout.callback [as _onTimeout] (/Users/saurabh/Desktop/project/rewards-app-fe/node_modules/jsdom/lib/jsdom/browser/Window.js:680:7)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) TypeError: Cannot read property 'respondWith' of undefined
at /Users/saurabh/Desktop/project/rewards-app-fe/src/Store/Actions/AuthActions/AuthActions.test.js:35:15
at Timeout.callback [as _onTimeout] (/Users/saurabh/Desktop/project/rewards-app-fe/node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)

@hai-nguyen1112
Copy link

I am having the same issue.

@rhryhorenko
Copy link

any updates? Stuck with the same problem

@Mitdd9707
Copy link

I am having the same issue.

@sinfonico7
Copy link

The same here...

@orenfromberg
Copy link

saaaaame

@Iddy123
Copy link

Iddy123 commented Mar 9, 2022

samee

@tanmayVaish
Copy link

same

@parvathirajan
Copy link

+1

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

9 participants