-
Notifications
You must be signed in to change notification settings - Fork 529
Conversation
So as to not conflict with run
'should display autocomplete menu when input has focus' and 'should display autocomplete menu when input has focus'
The more logical choice for this test scenario
🎉I'll get to reviewing this straight away. What are your thoughts/preferences on rebase+squashing commits? I've generally tried to follow that for a lot of the internal projects I've worked on - this repo currently does not have a "standard best practice" so I'd hate to try and enforce something that isn't being done and also folks don't want to do. Thanks a ton for doing these, I was wanting to move forward on some of the other PRs and was a bit nervous to do this without tests. <3 |
@sprjr I have no preferences on rebasing, but am happy to do so if it would be preferable. How do you generally go about it for your internal projects? Also, my pleasure! I'm glad it's enabling. :) |
We've been pushing for rebase then merge, and we try to do the "single feature branches squash down to single commits." Although since you have multiple authors you might also want to adjust that - and it seems like much ado about nothing since the project itself doesn't enforce/suggest it. I'll merge it in tomorrow as is after validating locally. Thanks! Sent from my iPhone
|
I ran the tests locally and saw a failure: I'm on
We should be good to merge. Thanks! |
fwiw, I did a rebuild on |
Phew, this was an interesting dependency quest! First the real bug in this branch you discovered: Second, why the test didn't fail for me: Solution: add back the deleted parameter and pin |
As for updating |
Oh wow, thanks for digging in to that! I figured we should update the
edit: also confirmed this cleans up the tests on my fresh install / setup. 🎉 |
If you are adding jsdom 8, I think you will also need to update .travis.yml, since it currently tries to build with node 0.10 (https://github.com/reactjs/react-autocomplete/blob/master/.travis.yml#L3), which is not compatible with the newer versions of jsdom (https://github.com/tmpvar/jsdom/blob/master/Changelog.md#700). Also, a warning in the README that it will only build with node >= 4 might be useful. |
@sprjr Hmmm, perhaps you're viewing old versions of those files? I'll tag you in the diffs. |
@@ -15,4 +15,13 @@ Stuff we need help with: | |||
pretty lean, on purpose, apps should style this however they'd like) | |||
- tests (eventually) | |||
|
|||
# Tests! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sprjr README test instructions. Is there more information that would be useful here?
Yep, forgot that I needed to |
Adding initial unit tests from @ryanalane.
@sprjr My pleasure! Thanks for the feedback and support. :) Always good to hear that efforts have been helpful. |
Set up a testing/coverage environment (enzyme + mocha + chai + isparta (istanbul) + various helper modules).
Added various types of tests: 1) Behavioral acceptance tests, 2) Keyboard Event Handlers, 3) unit tests for Autocomplete#renderMenu.