feat: export container from render (#567)

* feat: export root test instance from render

* test: add tests for root test instance returned from render function

* docs: add description about root test instance returned from render function

* feat: change root export to container and wrap component in View if no wrapper defined

* docs: update description about container test instance returned from render function

* test: update tests for root test instance returned from render function

* test: clean up comments in tests

* feat: add react-native as peerDependency, clean up lint ignore for lines that was importing react-native

* revert adding default wrapper

* rework tests

* reword docs

* add testID checks

* add comments

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
This commit is contained in:
Michał Klekowski
2020-10-21 12:26:01 +02:00
committed by GitHub
parent 696b28b9c3
commit 78fb456b8a
6 changed files with 36 additions and 4 deletions
+1
View File
@@ -56,6 +56,7 @@
},
"peerDependencies": {
"react": ">=16.0.0",
"react-native": ">=0.59",
"react-test-renderer": ">=16.0.0"
},
"scripts": {