Skip to content

feat(config): add new eventWrapper config for wrapping fireEvent#600

Merged
kentcdodds merged 1 commit into
masterfrom
pr/event-wrapper
Jun 1, 2020
Merged

feat(config): add new eventWrapper config for wrapping fireEvent#600
kentcdodds merged 1 commit into
masterfrom
pr/event-wrapper

Conversation

@kentcdodds

@kentcdodds kentcdodds commented Jun 1, 2020

Copy link
Copy Markdown
Member

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

codesandbox-ci Bot commented Jun 1, 2020

Copy link
Copy Markdown

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

codecov Bot commented Jun 1, 2020

Copy link
Copy Markdown

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
Copy Markdown
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.

1 participant