92 Commits

Author SHA1 Message Date
dependabot[bot] a7a771f54b chore(deps): bump dns-packet from 1.3.1 to 1.3.4 in /website (#742)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 21:09:35 +02:00
dependabot[bot] 623dd04c52 chore(deps): bump color-string from 1.5.3 to 1.6.0 in /website (#844)
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.6.0.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.6.0)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 21:03:07 +02:00
Augustin Le Fèvre 3735b0e41f Forward extra data to press event (#828) 2021-10-15 21:02:34 +02:00
dependabot[bot] 61ddf610b3 chore(deps): bump url-parse from 1.5.1 to 1.5.3 in /website (#813)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 20:43:11 +02:00
dependabot[bot] 6db0d1ed73 chore(deps): bump postcss from 7.0.29 to 7.0.36 in /website (#756)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.29 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.29...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 20:42:37 +02:00
dependabot[bot] 49386e17bc chore(deps): bump prismjs from 1.23.0 to 1.25.0 in /website (#823)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.25.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.25.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 20:42:25 +02:00
dependabot[bot] 040ec1746e chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /website (#796)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 20:42:09 +02:00
dependabot[bot] 534a9c5f1a chore(deps): bump merge-deep from 3.0.2 to 3.0.3 in /website (#754)
Bumps [merge-deep](https://github.com/jonschlinkert/merge-deep) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/jonschlinkert/merge-deep/releases)
- [Commits](https://github.com/jonschlinkert/merge-deep/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: merge-deep
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 20:41:58 +02:00
dependabot[bot] e0d1c7312f chore(deps): bump ws from 6.2.1 to 6.2.2 in /website (#752)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-15 20:41:48 +02: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ł Pierzchała e40d520657 docs: add Callstack notice (#759) 2021-06-28 12:14:07 +02:00
dependabot[bot] a018c7e1b1 chore(deps): bump ssri from 6.0.1 to 6.0.2 in /website (#716)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:56:19 +02:00
dependabot[bot] 5c6edb95c8 chore(deps): bump y18n from 4.0.0 to 4.0.1 in /website (#710)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:56:09 +02:00
dependabot[bot] 4bcee9896c chore(deps): bump elliptic from 6.5.3 to 6.5.4 in /website (#698)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:55:57 +02:00
dependabot[bot] bdb6cb52de chore(deps): bump url-parse from 1.4.7 to 1.5.1 in /website (#733)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 14:17:23 +02:00
dependabot[bot] f93cef35fb chore(deps): bump lodash from 4.17.20 to 4.17.21 in /website (#735)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 14:17:06 +02:00
Ray Chan e1d80d65fc docs: update NativeAnimatedHelper mock path in React Navigation example (#712)
* docs: update jest.mock for 'NativeAnimatedHelper' in React Navigation example (#711)

* Update website/docs/ReactNavigation.md

* Update website/docs/ReactNavigation.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-04-03 12:00:31 +02:00
McSam bc3d1bc4e8 docs: update Jest transformIgnorePatterns for React Navigation docs (#704) 2021-03-19 14:05:54 +01:00
dependabot[bot] ee7c9d7c8d chore(deps): bump prismjs from 1.21.0 to 1.23.0 in /website (#692)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.21.0 to 1.23.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.21.0...v1.23.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-02 15:04:26 +01:00
Mike Duminy 2ccec3c3a3 fix(breaking): use real timers internally to fix awaiting with fake timers (#568)
* capture global timers, use them in waitFor, tests+

* use real timers in flushMicroTasks

* test to show changes with modern timer mocks

* use enum-like object for timer modes

* fix tests

* remove default timer mode, add flow types
export other timer helpers, adjust tests and docs

* base waitFor on RTL implementation

* [jest] Capture and restore global promise

* [waitFor] Simulate intervals when using fake timers

* [tests] Fix waitForElementToBeRemoved

* cleanups; use more specific global

* rename globals to match others

Co-authored-by: Michael James Duminy <michael-james.duminy@klarna.com>
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-03-02 13:49:30 +01:00
Thakur Ballary 7b159a47e3 Fixed broken link of mock setup file (#673) 2021-02-28 20:50:03 +01: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
dependabot[bot] 803a53d2fe chore(deps): bump ini from 1.3.5 to 1.3.8 in /website (#641)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-07 11:07:10 +01:00
Cory Cunningham 05455b17c1 docs update for fireEvent.onScroll() (#633) 2020-12-11 18:17:55 +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
Ryan J. Wessel cd49dd4754 fix: Update "How Should I Query?" links to use the correct URLs (#580)
Co-authored-by: Ryan Wessel <rwessel@dataminr.com>
2020-10-26 17:18:57 +01:00
Michał Klekowski 78fb456b8a 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>
2020-10-21 12:26:01 +02:00
Panagiotis Plytas 85bccf2f6a docs: Port 'How Should I Query?' guide from Native Testing Library (#555)
* docs: Port How Should I Query guide

* fixup! docs: Port How Should I Query guide

* Update website/docs/HowShouldIQuery.md

* reword

* add getByAccessibilityState getByAccessibilityValue

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-10-12 19:07:36 +02:00
अभिनाश (Avinash) a95a3b0e73 Minor grammatical change (#551) 2020-09-26 10:15:47 +02:00
Michał Pierzchała a0faf69bea docs: adjust ByTestId misleading warnings; add guidelines about accessibilityHint (#542)
* docs: remove byTestId misleading warnings

* change caution to warning, mention principles and accessibility guideline

* promote new aliases in docs example

* rephrase
2020-09-11 13:18:52 +02:00
David Calhoun 7ba31524c5 Clarify waitFor documentation in regards to timer mocks (#540)
Update documentation to explicitly state that one should not await the
return or resolution of a `waitFor` call when relying upon timer mocks.
2020-09-09 15:58:31 +02:00
David Calhoun 7e14ade779 Clarify waitFor documentation in regards to timer mocks (#538)
Update documentation to explicitly state that one should not await the
return or resolution of a `waitFor` call when relying upon timer mocks.
2020-09-09 09:52:03 +02:00
dependabot[bot] 275251896e chore(deps): bump http-proxy from 1.18.0 to 1.18.1 in /website (#537)
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/http-party/node-http-proxy/releases)
- [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/http-party/node-http-proxy/compare/1.18.0...1.18.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-07 22:45:09 +02:00
Alvaro Catalina d55ea0b0b4 feat: RegExp support for *ByTestId queries (#535)
* getAllByTestId supports a regex matcher

* update typings

* docs: update

* refactor types

* refactor. remove unnecessary try/catch

* refactor test assertions
2020-09-07 22:39:16 +02:00
Michał Pierzchała e0359c6650 fix: add note about baseElement removed from render (#533)
* fix: add note about baseElement removed from render

* typos, language
2020-09-03 14:30:59 +02:00
Justinas Reigis 327ccf6fb9 docs: update scroll event api for flat list (#519) 2020-08-31 10:07:58 +02:00
Michał Pierzchała c5e9b71131 chore(docs): followup fixes for docusaurs alpha.61 (#510)
* fix links

* update projectName to reference the one on github
2020-08-17 14:56:24 +02:00
Michał Pierzchała e49030b553 chore(docs): bump docusaurus to alpha.61 (#509) 2020-08-17 14:25:20 +02:00
Michał Pierzchała 1ec340c8a0 docs: adjust wording around debug (#502) 2020-08-12 18:48:37 +02:00
dependabot[bot] 17d5165980 chore(deps): bump prismjs from 1.20.0 to 1.21.0 in /website (#490)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-10 10:57:53 +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
Nick McCurdy 7909558763 docs: fix typo in migration v7 doc (#465) 2020-07-30 16:13:15 +02:00
Maciej Jastrzebski 9de58e845b fix: added migration guide v7 to website sidebar (#464) 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 5adf148de5 feat: prevent events on disabled elements (#460)
* feat: add tests

* feat: prevent event handling on disabled element

* refactor: code cleanup

* feat: use props.onStartShouldSetResponder to check for event handling

* refactor: code review changes

* feat: updated docs

* feat: added test for fake 'disabled' prop
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
Maciej Jastrzebski 3f88cacbc6 feat: add getQueriesForElement alias to within (#461)
* feat: getQueriesForElement alias implementation & test

* feat: added typescript types and tests

* feat: updated docs
2020-07-30 16:13:15 +02:00
Michał Pierzchała ae5f9d8e97 docs: add migration to v7 guide (#456)
* docs: add migration to v7 guide

* adjust note about ByTitle because there's no host Button component

* add fire event section

* mention NativeTestInstance and container

* Update website/docs/MigrationV7.md

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

* Update website/docs/MigrationV7.md

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

* Update website/docs/MigrationV7.md

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

* Update website/docs/MigrationV7.md

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

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2020-07-30 16:13:15 +02:00