89 Commits

Author SHA1 Message Date
Maciej Jastrzebski 2bce396a46 docs: expose jest matchers publically (docs, examples, etc) (#1523)
* docs: update references to Jest Native

* chore: update docs

* chore: update example apps

* docs: update

* chore: upgrade example apps

* chore: self code review

* chore: docs tweaks

* docs: code review changes
2023-11-14 12:23:24 +01:00
Maciej Jastrzebski 84ba56e56f docs: Jest matchers docs (#1506)
* docs: v1 of jest matchers docs

* chore: add TOC

* chore: tweak heading levels

* docs: tweaks

* docs: cross references

* docs: tweaks

* docs: tweaks

* docs: tweaks

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/MigrationJestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/MigrationJestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* docs: spellchecking

* chore: final fixes

---------

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
2023-11-09 17:10:50 +01:00
Jovan Goh b0194791ad fix: change broken hyperlink in README.md (#1520) 2023-11-06 22:18:14 +01:00
Maciej Jastrzebski bf600e1016 Update README.md 2023-05-10 12:17:54 +02:00
Maciej Jastrzebski 7564bb5703 Update README.md 2023-05-09 11:40:37 +02:00
Maciej Jastrzebski f9af8306c2 Update README.md (#1407) 2023-05-09 11:34:05 +02:00
Maciej Jastrzebski 3eebab255b Add migration link to readme 2023-03-17 11:48:05 +01:00
Pierre Zimmermann 43e02e443a docs: update docs on custom jest preset (#1316)
* docs: update docs on custom jest preset

* docs: flip conditions on modern timers and react native version

* Update README.md

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>

* Update title in readme for custom jest preset

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>

---------

Co-authored-by: pierrezimmermann <pierrez@nam.tech>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2023-02-17 14:37:08 +01:00
MattAgn 860356be06 feat: option for queries to respect accessibility (#1064)
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2022-11-04 22:44:50 +01:00
Jan Jaworski 4f4a6b4f42 fix: cleanup codecov badge links (#1205)
* fix: cleanup codecov badge links

* fix: correct order

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-10-31 16:06:20 +01:00
Jan Jaworski be202a989a chore: add codecov badge to README (#1204)
* chore: add codecov badge to README

* chore: move before callstack
2022-10-31 15:51:21 +01:00
Maciej Jastrzebski 6108b95552 docs: troubleshooting guilde (#1065) 2022-08-18 14:26:39 +02:00
HeeCheolKim cdfe1bde4c Update README.md (#1036) 2022-08-08 16:01:00 +02:00
Maciej Jastrzebski a80e0c338b docs: v11 migration guide (#1021)
* docs: v11 migration guide

* docs: tweaks

* docs: more tweaks

* tweaks
2022-07-25 16:23:57 +02:00
Maciej Jastrzebski f6fe982f65 docs: create document describing act function and related errors (#969)
* docs: initial act doc

* self code review

* docs: self code review

* docs: applied type fixes

* docs: further updates
2022-07-19 12:00:03 +02:00
Maciej Jastrzebski 5d681790bf feat: add screen API (#994)
* feature: screen

* feature: update docs

* refactor: add flow type

* docs: more

* docs: final tweaks

* test rerender

* code review changes

* alias RenderResult to RenderAPI

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-06-24 13:17:06 +02:00
Augustin Le Fèvre 1360b73295 feat(breaking): migrate Flow to TS; remove some deprecated functions and aliases (#881)
* Port types to TS

* Fix CI commands

* Fix typo in yml file

* Address PR comments

* Remove aliased accessibility queries

* Add flow types

* Update build to support TS

* Clean up removed aliased queries

* Move @babel/plugin-transform-flow-strip-types to test config

* Address PR comments

* Delete flow tests

* Retrigger pipeline

* Update src/helpers/timers.ts

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-03-25 16:54:30 +01:00
Nick McCurdy b6ec6b0198 chore: rename default branch to main (#784) 2021-10-15 20:39:35 +02:00
Güven Karanfil 2f5208b93b docs: fix minimum react-native version for async act to 0.61 (#836) 2021-10-15 20:09:34 +02:00
Michał Chudziak 6d6c46e28a Add Callstack reference (#758) 2021-06-25 15:02:12 +02:00
Michał Pierzchała 62ccd08e13 feat: expose custom Jest preset restoring global Promise (#695)
* feat: expose custom Jest preset restoring global Promise

* typo
2021-03-02 14:24:56 +01:00
Rsmouki f81ebc39d5 docs: fix typo in README.md (#657)
The jest.config file extention should be ".json" instead of  ".js"
2021-01-25 10:02:52 +01:00
Ryosuke c9d4809e8f fix: small typo (#575)
Noticed a small typo. Not sure if I should submit to this branch or if there's a "next" style branch? but easy edit to transfer either way 😄
2020-10-17 13:12:00 +02:00
Alireza Ghamkhar aa285a06f7 docs: add a new link to External Resources (#491)
This is a youtube tutorial on a simple setup and usage for React Native Testing Library & Jest Native
2020-08-10 10:52:37 +02:00
Michał Pierzchała 0e3f654b27 docs: small amendments to the migration guide 2020-07-30 16:13:15 +02:00
Michał Pierzchała aa411c0d79 docs: refresh readme and getting started guide 2020-07-30 16:13:15 +02:00
Maciej Jastrzebski f971c244cb Added migration v7 link to README 2020-07-30 16:13:15 +02:00
Michał Pierzchała 3c0a2ecf02 chore(breaking): rename to @testing-library/react-native (#463) 2020-07-30 16:13:15 +02:00
Maciej Jastrzebski 37f0c42a1f fix: update package name in docs (#462)
* fix: package reference in docs

* fix: more references to package name

* Update README.md

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

* Update website/docs/GettingStarted.md

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

* Update website/docs/API.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-07-30 16:13:15 +02:00
Steve Galili 1537de317d docs: add links to external resources in the README (#446)
* Update README.md

* Update README.md
2020-07-21 10:15:44 +02:00
Paul Cowgill 2bf4fcf943 docs: fix a link to react-testing-library (#412) 2020-06-30 17:18:43 +02:00
Maciej Jastrzebski 300d16b822 feature: wait for element to be removed (#376)
* feature: basic implementation

* feature: basic implementation

* feature: added typescript types

* feature: check if element exists initially

* resolve promise with initial elements

* docs: README & API

* use ErrorWithStack helper

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-06-10 08:17:01 +02:00
Michał Pierzchała 2e4594f868 docs: clarify configuration to incluude preset react-native (#362) 2020-05-30 20:18:35 +02:00
Maciej Jastrzebski 9e50bff6ab chore(breaking): deprecate flushMicrotasksQueue (#340)
* Deprecated flushMicrotasksQueue

* Update website/docs/Migration20.md

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

* Renamed flushMicrotasksQueueInternal to flushMicroTasks

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-28 15:06:04 +02:00
Maciej Jastrzebski 9fc83fec60 Feat(breaking): remove deprecated functions (#334)
* WIP

* More changes

* WIP

* Added throwRemovedFunctionError docsRef

* Fixed tests

* Typescript types cleanup

* Cleanup

* Moving some changes from `prepare-2` branch

* Moving some changes from `prepare-2` branch

* Update src/waitFor.js

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

* Update website/docs/Migration20.md

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

* Code review changes

* More code review changes

* Code review changes

* More code review changes

* Added @deprecated messages for TS type defs

* Spelling mistake

* Reformatted index.d.ts

* Removed remaining refs to warnFn

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-28 15:06:04 +02:00
Maciej Jastrzebski 5e798bc2e3 Feat(breaking): unify wait for element signature with testing library (#327)
* Change argument to options object

* Renamed `waitForElement` to `waitFor`

* Migration guide entry

* Fixed typescript check

* Update src/helpers/a11yAPI.js

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

* (Nearly) Empty migration doc for ver. 2.0 (#326)

* Added migration docs section

* Added to docosaurus side bar

* Updated README

* Increased async test timeout

* Update website/docs/Migration20.md

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

* feat(breaking): remove legacy `debug` export (#328)

* Removed global `debug` functions

* Removed global `debug` from docs

* Cleanup

* Added migration section

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

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-28 15:06:04 +02:00
Maciej Jastrzebski b3e5ca386c (Nearly) Empty migration doc for ver. 2.0 (#326)
* Added migration docs section

* Added to docosaurus side bar

* Updated README

* Increased async test timeout

* Update website/docs/Migration20.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-28 15:06:04 +02:00
Maciej Jastrzebski 414f8701a5 feat: Support for @testing-library/jest-native (#310)
* Added @testing-library/jest-native to devDependencies

* Tests for jest-native matchers

* Added @testing-library/jest-native install info

* Update README.md

* Update GettingStarted.md

* feat: add `findBy*` queries (#304)

* Basic async findBy queries

* Refactored findBy queries to be built with makeFindQuery

* findBy queries for A11y selectors

* Custom findByTestId implementation that avoids current getByTestId issues

* Fixed prettier issue

* Updates Queries.md with findBy queries

* Trying to fix test timeout error appearing only on CI

* Code review changes

* Added typescript types & tests

* prettier did reformat some code arround

* Removed export of GetByAPI, QueryByAPI and FindByAPI interfaces in TS

* Reversed prettier run on typings

* Added overlapping pieces with `within` operator

* Small cleanup

* Update website/docs/Queries.md

* Moved async/await tests to the end of test methods

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

* chore: bump eslint config to latest (#308)

* chore: bump eslint config to latest

* lint fix

* lint pass

* use roles directly

* Trying to fix CI build

* Added $FlowFixMe for missing flow expect extensions

* Small doc fixes

* Clarified failing toHaveProps matcher tests

* Moved lint ignore for color literals to .eslintrc

* Updated toHaveProp tests to avoid strange `Button` behavior

* Updated yarn.lock

* Update README.md

* Update website/docs/GettingStarted.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-18 09:37:59 +02:00
Maciej Jastrzebski 1809825313 feat: add within operator for returned instance-bound queries (#306)
* Basic within implementation and tests

* Added typescript types & tests

* Removed duplicated import in index.d.ts

* Reversed prettier run on typings

* Fixed package level exports for `within` operator

* Replaced getByTestId queries with getByA11yHint queries in unit tests for `within`

* Added `within` section to API.md

* Updated README.md regarding `within` operator

* Update website/docs/API.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-14 12:51:19 +02:00
Michał Pierzchała 1f6bc249f2 docs: fix readme example (#288) 2020-04-24 12:24:57 +02:00
Kacper Wiszczuk 88f55e216d fix: remove gatekeeper badge (#267) 2020-03-18 17:45:14 +01:00
Daniel Idaszak 131a903427 chore: Typo fixed in readme (#194) 2019-06-19 12:08:36 +02:00
Michał Pierzchała fb8a6fc7e2 chore(docs): improve examples to use better APIs 2019-06-11 13:32:26 +02:00
Michał Pierzchała fd6cb4951e docs: install react-test-renderer typings (#181) 2019-05-28 22:52:40 +02:00
Asday 66a4f5f347 Fixed a 404 in README.md. (#159)
<!-- Please provide enough information so that others can review your pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Summary

The readme's "Rally Health" link is a 404.  It appears to attempt to link to a careers page.  I skillfully sniffed out a suitable careers page by scrolling down on the 404 page and clicking "careers".

### Test plan

0. Scroll to the bottom of `README.md`;
0. Middle click on "Rally Health";
0. Bask (optional).
2019-04-23 09:10:18 +02:00
Kacper Wiszczuk 7a1c264bb0 Docs: Remove shallow API from docs (#154) 2019-04-14 17:39:11 +02:00
Kacper Wiszczuk 34eb921e21 Fix small logo in README.md (#153)
Fix small logo.
2019-04-14 15:14:19 +02:00
Kacper Wiszczuk b94fe03990 docs: Owl as RNTL logo (#152)
* imp: owl as RNTL logo

* Undo formatter mess

* Change descriptions
2019-04-14 15:04:16 +02:00
Michał Pierzchała 3e73d6f32d chore: remove excess badges that have GH support 2019-03-11 16:52:57 +01:00
Michał Pierzchała b3abf50a10 docs: add callstack badge and note 2019-03-06 19:47:41 +01:00