Skip to content
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

feat(hover): Add hover API (fixes #254) #331

Merged
merged 6 commits into from Jun 10, 2020
Merged

feat(hover): Add hover API (fixes #254) #331

merged 6 commits into from Jun 10, 2020

Conversation

nickmccurdy
Copy link
Member

@nickmccurdy nickmccurdy commented Jun 9, 2020

What: Add hover() for hovering elements

Why: Testing tooltips and other behavior involving mouse hovering

How: Calling various mouse events

Checklist:

  • Documentation
  • Tests
  • Typings
  • Ready to be merged

Note: I intentionally left the test failing because I could use some help figuring out how to fix it. For some reason, mouseout is not added to the list of events, despite being called in the function and onMouseOut working in a React test.

src/index.js Outdated Show resolved Hide resolved
src/__tests__/hover.js Outdated Show resolved Hide resolved
@kentcdodds
Copy link
Member

Thanks for working on this!

@nickmccurdy nickmccurdy linked an issue Jun 9, 2020 that may be closed by this pull request
README.md Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #331 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #331      +/-   ##
==========================================
+ Coverage   99.37%   99.39%   +0.02%     
==========================================
  Files           2        2              
  Lines         319      331      +12     
  Branches       84       84              
==========================================
+ Hits          317      329      +12     
  Misses          2        2              
Impacted Files Coverage Δ
src/index.js 99.02% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbdefef...18a72dd. Read the comment docs.

@kentcdodds kentcdodds merged commit 50057e3 into master Jun 10, 2020
@kentcdodds kentcdodds deleted the pr/hover branch June 10, 2020 04:46
@kentcdodds
Copy link
Member

@all-contributors please add @nickmccurdy for code and tests

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @nickmccurdy! 🎉

@kentcdodds
Copy link
Member

🎉 This PR is included in version 11.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hover
2 participants