mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
31ef0b92ed
* Add TextMatch options to getByAPI * Add TextMatch options to queryByAPI * Add TextMatch options to findByAPI * Add tests covering new TextMatch options * Add documentation and examples for TextMatch options * Implement text match normalization customization * Implement tests for normalization options * Add text normalization docs * Refactor typings * Add export for getDefaultNormalizer function * Remove undocumented config for normalizer function * Update website/docs/Queries.md Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com> * BREAKING: make findBy* queries arguments order compatible with RTL * Fix tests for findBy queries after changing their API * Fix matching nested Text components with queryOptions exact set to true * Remove recursion matching for *byText APIs * Reuse getAllByText in getByText * Add Textmatch options to *byTestId * fix: types for getDefaultNormalizer * refactor: remove makeNormalizer and use getDefaultNormalizer() instead * refactor: change params position and description for matches * refactor: move & remove duplicated tests after merge * Make waitForOptions param change non breaking change * chore: cleanup and type fixups * tests: update snapshots * chore: use default arg value for normalizer * Restore mock after use * fix: wrong snapshot update with outdated deps Co-authored-by: Rafał Zakrzewski <zakrzewski.rafal@gmail.com> Co-authored-by: Michał Pierzchała <thymikee@gmail.com> Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com> Co-authored-by: Damian Sznajder <damsznajder@gmail.com>
Website
This website is built using Docusaurus 2, a modern static website generator.
Installation
$ yarn
Local Development
$ yarn start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
Build
$ yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.