Commit Graph

1136 Commits

Author SHA1 Message Date
dependabot-preview[bot] 8f36424c53 chore(deps): bump pretty-format from 26.4.2 to 26.6.1
Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 26.4.2 to 26.6.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v26.6.1/packages/pretty-format)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-01 06:06:09 +00:00
dependabot-preview[bot] a0df3d5fd2 chore(deps-dev): bump @babel/preset-flow from 7.10.4 to 7.12.1
Bumps [@babel/preset-flow](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-flow) from 7.10.4 to 7.12.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.1/packages/babel-preset-flow)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-01 06:04:54 +00:00
dependabot-preview[bot] c7c2b121a6 chore(deps-dev): bump @babel/preset-react from 7.10.4 to 7.12.1
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.10.4 to 7.12.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.1/packages/babel-preset-react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-01 06:04:42 +00:00
dependabot-preview[bot] a534fee142 chore(deps-dev): bump typescript from 4.0.3 to 4.0.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.3 to 4.0.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.3...v4.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-01 06:03:05 +00:00
dependabot-preview[bot] f7c03d7c5f chore(deps-dev): bump @babel/core from 7.11.6 to 7.12.3
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.11.6 to 7.12.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.3/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-01 05:57:44 +00:00
Jason Cheatham b74b15faf2 fix: add container to TypeScript types (#582)
Update the TS types for the new `container` property that was added to
the output of `render` in #567.
2020-10-28 15:33:23 +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ł Pierzchała b9f9ab754e v7.1.0 v7.1.0 2020-10-21 12:36:44 +02: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
Alan Kenyon 696b28b9c3 fix: non-responder wrapping host elements ignore disabled prop (#572)
* test showing the issue

* don't pass non-responder host elements as decsecendants

* linter fixs

* attempting to improve readability

* refactor: re-structure code for clarity & redability

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2020-10-21 11:50:09 +02: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
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
Simon Reggiani 484c9f7790 feat: add the value expected in getBy error messages (#550)
* add the value expected in getBy error messages (e.g. "No instances found with text 'bla'")

* updated a11y test

* rename fullNoInstanceError to getNoInstancesFoundMessage

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

* addressing PR comments

* fixed lint error

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2020-10-12 18:01:42 +02:00
dependabot-preview[bot] 1b5569b9b6 chore(deps-dev): bump release-it from 13.7.0 to 14.0.3 (#565)
Bumps [release-it](https://github.com/release-it/release-it) from 13.7.0 to 14.0.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.7.0...14.0.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 17:52:15 +02:00
dependabot-preview[bot] 3737eacfd0 chore(deps-dev): bump @types/react-native from 0.63.12 to 0.63.23 (#561)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.63.12 to 0.63.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-native)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 17:52:04 +02:00
dependabot-preview[bot] c88dd9901e chore(deps-dev): bump react-native from 0.63.2 to 0.63.3 (#558)
Bumps [react-native](https://github.com/facebook/react-native) from 0.63.2 to 0.63.3.
- [Release notes](https://github.com/facebook/react-native/releases)
- [Changelog](https://github.com/facebook/react-native/blob/master/Releases.md)
- [Commits](https://github.com/facebook/react-native/compare/v0.63.2...v0.63.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 17:51:52 +02:00
dependabot-preview[bot] daec3e3969 chore(deps-dev): bump typescript from 4.0.2 to 4.0.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.2...v4.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 07:40:31 +00:00
dependabot-preview[bot] e489100fc1 chore(deps-dev): bump @testing-library/jest-native from 3.3.0 to 3.4.3
Bumps [@testing-library/jest-native](https://github.com/testing-library/jest-native) from 3.3.0 to 3.4.3.
- [Release notes](https://github.com/testing-library/jest-native/releases)
- [Changelog](https://github.com/testing-library/jest-native/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-native/compare/v3.3.0...v3.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 07:38:28 +00:00
dependabot-preview[bot] 4df10d70ff chore(deps-dev): bump @babel/core from 7.11.5 to 7.11.6
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.11.5 to 7.11.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.6/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 07:36:07 +00:00
dependabot-preview[bot] 8e1a75bd49 chore(deps-dev): bump @babel/cli from 7.11.5 to 7.11.6
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.11.5 to 7.11.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.6/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 07:33:26 +00:00
dependabot-preview[bot] 6231c31c04 chore(deps-dev): bump eslint from 7.8.0 to 7.10.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.8.0 to 7.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.8.0...v7.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 07:31:33 +00:00
Kenneth Kwakye-Gyamfi 6c7c004ae6 chore: Update CircleCI to run examples (#557)
* chore: Update CircleCI to run examples

* chore: loop through each example and run test

* fix: switch to using yarn instead of npm

* Update .circleci/config.yml

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-09-30 11:44:27 +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
Panagiotis Plytas f68f3120ec feat: support 'editable' prop on TextInput (#517)
* test: Add tests for non-editable TextInput

* feat: use editable prop to check for event handling
2020-09-07 22:42:22 +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
dependabot-preview[bot] 5f3639f64b chore(deps-dev): bump @types/react-native from 0.63.6 to 0.63.12 (#521)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.63.6 to 0.63.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-native)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-01 19:38:30 +02:00
dependabot-preview[bot] fc94b3b8a2 chore(deps-dev): bump typescript from 3.9.7 to 4.0.2 (#523)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.7 to 4.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.7...v4.0.2)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-01 19:37:09 +02:00
dependabot-preview[bot] 98ce0ff3bd chore(deps-dev): bump release-it from 13.6.6 to 13.7.0
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.6 to 13.7.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.6...13.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:54:44 +00:00
dependabot-preview[bot] bf46ea3fbf chore(deps): bump pretty-format from 26.3.0 to 26.4.2
Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 26.3.0 to 26.4.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v26.4.2/packages/pretty-format)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:54:18 +00:00
dependabot-preview[bot] 61d1e07e11 chore(deps-dev): bump jest from 26.3.0 to 26.4.2
Bumps [jest](https://github.com/facebook/jest) from 26.3.0 to 26.4.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.3.0...v26.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:47:27 +00:00
dependabot-preview[bot] 183dd60ddb chore(deps-dev): bump @babel/preset-env from 7.11.0 to 7.11.5
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.11.0 to 7.11.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.5/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:47:17 +00:00
dependabot-preview[bot] 51165aeb26 chore(deps-dev): bump @babel/cli from 7.10.5 to 7.11.5
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.10.5 to 7.11.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.5/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:44:55 +00:00
dependabot-preview[bot] 544ecadf2f chore(deps-dev): bump conventional-changelog-cli from 2.0.34 to 2.1.0
Bumps [conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog) from 2.0.34 to 2.1.0.
- [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases)
- [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-cli@2.0.34...conventional-changelog-cli@2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:42:58 +00:00
dependabot-preview[bot] ebd0933866 chore(deps-dev): bump @babel/core from 7.11.1 to 7.11.5
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.11.1 to 7.11.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.5/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:41:14 +00:00
dependabot-preview[bot] 8b28df6579 chore(deps-dev): bump @types/react from 16.9.43 to 16.9.49
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.43 to 16.9.49.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:39:21 +00:00
dependabot-preview[bot] b41d6193fc chore(deps-dev): bump eslint from 7.6.0 to 7.8.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.6.0 to 7.8.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.6.0...v7.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-01 07:35:51 +00:00
Justinas Reigis 327ccf6fb9 docs: update scroll event api for flat list (#519) 2020-08-31 10:07:58 +02:00
Michał Pierzchała 64bbde4c2a chore: test website on CI (#511) 2020-08-17 15:47:49 +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 0aa9465856 v7.0.2 v7.0.2 2020-08-16 21:28:12 +02:00
AugustinLF 9f6ca56ac0 fix: Return closest Text matching a query (#489)
* fix: Return closest Text matching a query

* Add test for another edge case

* Fix whitespaces

* adjust comment

* Update src/helpers/getByAPI.js

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

* update test

* use queryBy

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2020-08-16 21:26:29 +02:00
dependabot-preview[bot] 2536b8b5a0 chore(deps-dev): bump @babel/preset-env from 7.10.2 to 7.11.0
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.10.2 to 7.11.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.0/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-12 17:03:32 +00:00
dependabot-preview[bot] 74603064a0 chore(deps-dev): bump eslint from 7.5.0 to 7.6.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.5.0 to 7.6.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.5.0...v7.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-12 16:58:46 +00:00
dependabot-preview[bot] 9576807a5d chore(deps-dev): bump @babel/core from 7.10.4 to 7.11.1
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.4 to 7.11.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.11.1/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-12 16:55:45 +00:00