-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fix "Cannot read property 'length' of undefined" #223
Conversation
Codecov Report
@@ Coverage Diff @@
## master #223 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 14 14
Lines 450 450
Branches 61 61
=====================================
Hits 450 450
Continue to review full report at Codecov.
|
Could we expose the failing case with a unit test? |
Sure i'll try to get a repro |
Here's the output from when I got the issue (again, rolling back to 4.1.1 worked for me):
|
I actually was able to reproduce this locally using node 7.10.0, but... how can we cover this with a unit test? This is something that happens in the |
IMO, this fix seems legit.
Are you able to reproduce this behavior with a corresponding example: |
For now i'm not being able to get a repro. Currently working on Node v6.10.3, i tried with my current config and your tests but no success (no success to fail i mean...):
And the current config (i'm working with local PhantomJS setup) :
I can't think of another setup difference that would make this happen. @brandonaaskov, anything which sounds familiar in this setup? |
I believe the issue here is the underlying version of jasmine (not node). This PR is not needed for jasmine 2.7.0 (current dependency in jasmine-spec-reporter) but it is needed for eg jasmine 2.4.1. |
Well, was not around for a while but glad the reason was found. Thanks! |
See #222