-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
expect.any throws a type error #1520
Comments
Could this be a new method in Jest 18? We are currently shipping Jest 17. |
Seems new in Jest 18. I can confirm it works on master and will work in |
Awesome thanks @gaearon |
Should be available on 0.9.0 we just released. |
I'm getting this error with |
I can’t reproduce this. I added So if you still have issues, you’ll need to create a project reproducing this. |
Figured it out. Somehow I ended up with |
@dangerismycat you probably ran something like |
If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
Can you reproduce the problem with latest npm?
Reproducible with 18.1.0
Description
http://stackoverflow.com/questions/41942411/typeerror-expect-any-is-not-a-function
Expected behavior
expect.any(Constructor)
should work as listed in the docs for JestActual behavior
Throws a TypeError
Environment
NPM v3.10.3
Node v6.6.0
The text was updated successfully, but these errors were encountered: