-
Notifications
You must be signed in to change notification settings - Fork 91
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() returns undefined #2
Comments
This seems to be an issue when webpack builds the source. If you run the test importing moxios from './dist/moxios' 7 test will fail. For now I just copied the index.js file and import it in to my test helper. I may can give a helping hand to looking in to what could cause this. |
Hey @joshualcoffee, thank you for your help. Indeed, if i put moxios outside of node_modules and require the index file, it starts working. Though I had to add babel to my coffeescript project, would be great if i didn't have to do it. |
Also I just realised this was mentioned in #1. So it works if i pass axios to 'moxios.install()` |
I am facing the same issue, any solution? |
Same issue |
I use karma, jasmine and phantomJS with babel-polyfill. mostRecent always returns undefined even if I call axios in the test directly.
For example:
The text was updated successfully, but these errors were encountered: