-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Jest throws when using an old global CLI #105
Comments
Good catch. We should've caught this when updating that API -- at the very least we should add a comment specifying that changes to that API need to be backward compatible (or need to be a breaking version change). I'm ok with making |
Just published 0.1.18 with a fix that gives onComplete a default function value if it wasn't provided by the caller |
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. |
Old globally-versions of jest installed globally don't pass the onComplete handler to runCLI so they error at the end of a test run when Q tries to call the handler (I think). We should either make the onComplete handler optional or maybe rename runCLI to runCLIAsync and have runCLI throw an informative error. (Also maybe try to make the global script even smarter/dumber so it doesn't rely on such API details? Not sure how simple that is.)
The text was updated successfully, but these errors were encountered: