Closed eps1lon closed 2 years ago
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 25b044bddeeef0b03a910711ba2a2813203fa694:
Sandbox | Source |
---|---|
react-testing-library-examples | Configuration |
React: does not work the way you think it does | PR |
Merging #1147 (25b044b) into main (54bfa48) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## main #1147 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 985 985
Branches 321 325 +4
=========================================
Hits 985 985
Flag | Coverage Ξ | |
---|---|---|
node-12 | 100.00% <ΓΈ> (ΓΈ) |
|
node-14 | 100.00% <ΓΈ> (ΓΈ) |
|
node-16 | 100.00% <ΓΈ> (ΓΈ) |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Ξ | |
---|---|---|
src/event-map.js | 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 54bfa48...25b044b. Read the comment docs.
:tada: This PR is included in version 8.14.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What:
fireEvent.load
(et. al.) dispatches aEvent
now instead ofUIEvent
Adds a test for https://github.com/testing-library/dom-testing-library/issues/498Why:
I imagine that the most common targets are
<img />
and<script />
and neither of these receive load events asUIEvent
: https://codesandbox.io/s/react-script-does-not-work-the-way-you-think-it-does-stc66cHow:
Changed event type and added tests for
<script />
. Ieft a note that our abstraction doesn't support firing events with different types.Also removed the notion of "Image events" from comments. We refer to DOM interfaces in all other cases. But there is no such thing as
ImageEvent
.Checklist: