moxios.requests.mostRecent() is returning undefined

This issue has been tracked since 2020-04-16.

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)

andyngdz wrote this answer on 2020-09-26

Getting same issue

hai-nguyen1112 wrote this answer on 2020-10-29

I am having the same issue.

Proxi01 wrote this answer on 2021-01-11

any updates? Stuck with the same problem

Mitdd9707 wrote this answer on 2021-03-10

I am having the same issue.

sinfonico7 wrote this answer on 2022-01-25

The same here...

orenfromberg wrote this answer on 2022-03-02


Iddy123 wrote this answer on 2022-03-09


tanmayVaish wrote this answer on 2022-03-23


parvathirajan wrote this answer on 2022-11-10


More Details About Repo
Owner Name axios
Repo Name moxios
Full Name axios/moxios
Language JavaScript
Created Date 2016-05-25
Updated Date 2022-12-05
Star Count 1386
Watcher Count 20
Fork Count 85
Issue Count 19


Issue Title Created Date Updated Date