24 Commits

Author SHA1 Message Date
Maciej Jastrzebski a529a2da27 chore: apply UserEvent clear to examples/basic (#1451) 2023-08-14 13:16:29 +02:00
Maciej Jastrzebski b70c07d12f chore: update basic example with User Event (#1438)
* chore: update basic example with User Event

* chore: add fake timers
2023-08-06 17:27:12 +02:00
Maciej Jastrzebski b2d642feb0 chore: update example deps (#1435)
* chore: upgrade expo

* chore: upgrade example deps

* chore: update other examples
2023-07-21 17:07:34 +02:00
Abdelalim-dev 144796e232 Correct second test description (#1424) 2023-07-13 18:35:22 +02:00
Maciej Jastrzebski 90a6169ba7 chore: update Jest Native integration example (#1412) 2023-05-11 17:34:47 +02:00
Maciej Jastrzebski 4256d0c83c v12 release (#1314)
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
2023-03-15 09:41:38 +01:00
Maciej Jastrzebski 71d5040697 chore: update examples to use toBeOnTheScreen() (#1267) 2023-01-03 17:52:31 +01:00
Maciej Jastrzebski a218bbcf57 docs: refactor react-navigation example with React Nav team feedback (#1253) 2022-12-29 09:36:21 +01:00
Maciej Jastrzebski a8d15a5fca feature: update react nav example (#1237) 2022-12-07 21:28:35 +01:00
Maciej Jastrzebski a178c55966 chore: update example basic app (#1218) 2022-11-09 10:29:10 +01:00
Maciej Jastrzebski 6aaaf78b01 docs: tweak example app README.md 2022-11-08 21:36:36 +01:00
Maciej Jastrzebski e9aed66d7c chore: update jest-native deps (#1154) 2022-09-30 13:14:22 +02:00
Maciej Jastrzebski 64bae79d39 chore: update deps to expo 46 (#1059) 2022-08-11 10:36:38 +02:00
Maciej Jastrzebski 038ae4a09e feature: basic example app (#1025) 2022-07-28 10:24:28 +02:00
Maciej Jastrzebski 7dd403b2ea refactor: update example apps (#1024) 2022-07-26 14:55:24 +02:00
MattAgn 74318854b9 Organise a11y queries by predicate (#977)
* refactor: make Options generic type optionnal in queries

* refactor: extract byLabelText queries and its tests

* refactor: extract byA11yHint queries and its tests

* refactor: extract byRole queries and its tests

* refactor: extract byA11yState queries and its tests

* refactor: extract byA11yValue queries and its tests

* refactor: extract byA11yStates queries and its tests

* refactor: harmonize component declaration in queries testsx

* refactor: simplify error helpers in queries tests

* refactor: make error helpers more explicit

* chore: remove now unused makeA11yQueries

* refactor: rename AccessibilityStateKeyQueryParam to AccessibilityStateKeys

* refactor: rename param in a11yStates

* refactor: simplify matchObject

* refactor: fix namings in labelText

* refactor: fix namings in a11yHint

* refactor: fix queryAll namings'

* refactor: fix some namings in a11yState

* refactor: fix some namings in role

* refactor: fix some namings in a11yValue

* refactor: extract matchStringValue

* refactor: extract matchObject

* refactor: extract matchArrayValue

* test: add tests for the matchers

* refactor: simplify matchArrayValue to make it more explicit

* refactor: reorder imports and object keys

* refactor: update types

* refactor: small tweaks

* refactor: tweaks

* refactor: clarify matcher naming

* refactor: add missing aliases

* chore: fix ci timeout

* chore: revert jest timeout increase

* chore: revert timeout increase

* chore: fix ci tests

* chore: re-enable disabled tests

* chore: reduce jest paralelizaiton

* chore: ci tweaks

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2022-07-20 11:37:04 +02:00
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