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(config): add new eventWrapper config for wrapping fireEvent #600

Merged
merged 1 commit into from Jun 1, 2020

Conversation

kentcdodds
Copy link
Member

@kentcdodds kentcdodds commented Jun 1, 2020

What: feat(config): add new eventWrapper config for wrapping fireEvent

Why: So we don't have to do this nonsense: https://github.com/testing-library/react-testing-library/blob/0afcbea3c3d1ddce218a36d963d39fa83f9a7cf6/src/pure.js#L107-L128

How: Add the config

Checklist:

This is intended for supporting act in React, but should be useful for
other frameworks (I think it could help with triggering change detection
for angular for example).

Ref: testing-library/user-event#188,
testing-library/user-event#255,
https://github.com/testing-library/user-event/issues/277

This is intended for supporting `act` in React, but should be useful for
other frameworks (I think it could help with triggering change detection
for angular for example).

Ref: testing-library/user-event#188,
testing-library/user-event#255,
https://github.com/testing-library/user-event/issues/277
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 1, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit cd4f554:

Sandbox Source
dazzling-feather-eqthb Configuration

@codecov
Copy link

codecov bot commented Jun 1, 2020

Codecov Report

Merging #600 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #600   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          535       537    +2     
  Branches       134       134           
=========================================
+ Hits           535       537    +2     
Impacted Files Coverage Δ
src/config.js 100.00% <100.00%> (ø)
src/events.js 100.00% <100.00%> (ø)

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 9c0bff6...cd4f554. Read the comment docs.

@kentcdodds kentcdodds merged commit de9dd82 into master Jun 1, 2020
@kentcdodds kentcdodds deleted the pr/event-wrapper branch June 1, 2020 22:26
@kentcdodds
Copy link
Member Author

🎉 This PR is included in version 7.8.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.

None yet

1 participant