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:
Scotty Waggoner
2019-05-28 13:31:48 -07:00
committed by Michał Pierzchała
parent f635c852d4
commit f6f0a7091d
4 changed files with 80 additions and 11 deletions
+2
View File
@@ -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,
}