-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
can't run tests that uses "Request js" #214
Comments
Just to verify: Can you confirm which version of jest you're using? Secondly: Could you post a gist of that file ( |
using jest-cli 0.2.1 and dont see buffer references in tough-cookie. |
Please feel free to reopen if this is still a problem with jest 0.5 |
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. |
I'm using https://github.com/request/request in my code, unit test fails with below error
/node_modules/request/node_modules/tough-cookie/lib/cookie.js: Cannot read property 'buffer' of undefined,
I do have below setting in my package.config and it doesn't help
"jest":{
"unmockedModulePathPatterns": ["/node_modules/request"]
}
any suggestions to mock node modules?
The text was updated successfully, but these errors were encountered: