8 Commits

Author SHA1 Message Date
Aleksandra Desmurs-Linczewska 199de62c74 Adding tests for React Navigation Drawer Navigator (#624)
* test - React Navigation Drawer

* docs - updated documentation for the website

* docs - added Drawer Navigator test to the website

* actioning PR suggestions

* docs - simple doc cleanup;
2021-01-08 10:36:21 +01:00
Michał 91200ef448 Updated React imports (#629)
Co-authored-by: Michał Parkitny <michal.parkitny@callstack.com>
2020-12-10 10:44:02 +01:00
Michał Pierzchała 3c0a2ecf02 chore(breaking): rename to @testing-library/react-native (#463) 2020-07-30 16:13:15 +02:00
Michał Pierzchała 6d63a4f29e feat(breaking): rename ByPlaceholder to ByPlaceholderText (#455) 2020-07-30 16:13:15 +02:00
Drew Miller 7c6df013ff docs: update React Navigation tests to use find queries (#364)
* docs: update React Navigation tests to use find queries

* update test to be in sync with documentation
2020-05-31 11:58:31 +02:00
Alec Larson ad66a5489d feat: call "cleanup" automatically (#238)
* feat: add "cleanup" function

* docs: add "cleanup" section

* feat: automatically call "cleanup" after each test

...if an "afterEach" global function is defined, and process.env.RTL_SKIP_AUTO_CLEANUP is falsy.

Taken from: https://github.com/testing-library/react-testing-library/blob/14670debd45236d2c5d0a61a83dadc72af1bef7c/src/index.js

* docs: mention automatic cleanup

* add within

* fix lint

* Updated tests, added auto-cleanup test

* Added ways to prevent auto cleanup

* Small fix

* Code review changes

* Update website/docs/API.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>

* More changes

* Removed  afterEach(cleanup) calls in examples

* Code cleanup

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2020-05-28 15:06:04 +02:00
Kenneth Kwakye-Gyamfi ae3d4af370 docs: add Redux example (#291)
* Redux example

* Reviews implemented
2020-05-05 10:51:29 +02:00
Kenneth Kwakye-Gyamfi 95b4889fe9 docs: add example of testing React Navigation (#277)
* Proof of concept -  CodeSandbox embed

* Prettier fix

* Moved examples below API Reference

* Created the examples directory

Includes react-navigation example

* Article on React Navigation

* Specify rootDir for testing

Prevents CI to run example tests

* remove jest-transform-stub and identity-obj-proxy, add transformIgnorePatterns

* update docs

* rearrange

* remove non-essential files

* rename Navigation -> AppNavigator

* reword comment

* add links and explanations

* remove index file, because it's not an app anyway

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-04-24 11:08:52 +02:00