Repository navigation
chore(deps): update dependency @testing-library/react-native to v14.1.0 - #1126
Merged
Merged
Conversation
Performance Comparison ReportSignificant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
Render Count ChangesThere are no entries Render IssuesThere are no entries Added EntriesThere are no entries Removed EntriesThere are no entries Stability
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
14.0.1→14.1.0Release Notes
callstack/react-native-testing-library (@testing-library/react-native)
v14.1.0Compare Source
Features
fireEvent.layout()to simulate the layout engine measuring an element, invoking theonLayouthandler with a synthetic layout event. UnlikefireEvent(element, 'layout'), itdoes not bubble to parent elements.
fireEvent.scroll()anduserEvent.scrollTo()use the size from the last layout event on thesame
ScrollViewas the defaultlayoutMeasurement.userEvent.accessibilityAction()to dispatch a named accessibility action to anelement, invoking its
onAccessibilityActionhandler.userEvent.pullToRefresh()to simulate the pull-to-refresh gesture on a hostScrollViewelement, invoking theonRefreshhandler of itsrefreshControlprop.eventDiagnosticsconfiguration option. When enabled,fireEventanduserEventlog a warning when no handler is called, e.g. because the target is disabled, blocked by
pointerEvents, or has no handler for the event. Off by default. See theconfiguration docs.
test-renderer@1.3) and React Native 0.88.Bug fixes
userEvent.scrollTo()emits ascrollevent for the last step of a drag scroll, matchingnative behavior, and no longer emits
scrollevents when the scroll offset does not change.setImmediatefallback in environments without it (e.g. jsdom) picking up Jestfake timers, which could make async utilities hang.
Deprecations
fireEventwarns when a direct event bubbles from a nested element to the host element thatemits it, e.g.
scrollfromScrollViewcontent to theScrollView. These events will stopbubbling in the next major version. See the
fireEventdocs for the list of directevents.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.