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

Runtime Error: TypeError: Cannot set property 'Axios' of undefined #1459

Closed
Srikanth-AD opened this issue Aug 18, 2016 · 2 comments
Closed

Comments

@Srikanth-AD
Copy link

Srikanth-AD commented Aug 18, 2016

Runtime Error TypeError: Cannot set property 'Axios' of undefined at Object.<anonymous> (node_modules/axios/lib/axios.js:30:13) at Runtime._execModule (node_modules/jest-cli/src/Runtime/Runtime.js:261:17) at Object.<anonymous> (node_modules/axios/index.js:1:137) at Object.<anonymous> (src/actions/index.js:443:306) at Object.<anonymous> (src/reducers/clientsReducer.js:14:72) at Object.<anonymous> (src/reducers/__tests__/clientsReducer-test.js:2:49) at jasmine2 (node_modules/jest-jasmine2/src/index.js:252:16) at handle (node_modules/worker-farm/lib/child/index.js:41:8) at process.<anonymous> (node_modules/worker-farm/lib/child/index.js:47:3) at emitTwo (events.js:106:13) at process.emit (events.js:191:7) at process.nextTick (internal/child_process.js:719:12) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9)

I am using Jest: in a react, redux project and I get the above runtime error.
I am happy to provide any relevant code snippets.

@cpojer
Copy link
Member

cpojer commented Aug 18, 2016

This isn't really actionable. Please provide a repository on github that we can npm install and npm test to repro.

It seems like you are using automocking. Please disable it by doing "automock": false in your jest config.

@cpojer cpojer closed this as completed Aug 30, 2016
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants