mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
feat: Add wrapper option to render (#173)
* Add wrapper option to render * Update TS types and call updateWithAct only once * wrapUiIfNeeded -> wrap * reindent snapshots * adjustments * change name
This commit is contained in:
committed by
Michał Pierzchała
parent
f635c852d4
commit
f6f0a7091d
@@ -15,6 +15,8 @@ Defined as:
|
||||
function render(
|
||||
component: React.Element<any>,
|
||||
options?: {
|
||||
/* A React Component that renders `component` as children */
|
||||
wrapper?: React.ComponentType<any>,
|
||||
/* You won't often use this, but it's helpful when testing refs */
|
||||
createNodeMock: (element: React.Element<any>) => any,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user