Commit Graph

1136 Commits

Author SHA1 Message Date
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 9b90d6790d fix(breaking): getByTestId should work only for native elements (#324)
* Replaced getByTestId with fixed version

* Added tests

* Fixed flow-check

* Updated docs

* Fixed lint error

* Used getByTestId in unit tests instead of queryByTestId

* Updated negative checks in tests
2020-05-28 15:06:04 +02:00
dependabot-preview[bot] b5bfb28ed7 chore(deps-dev): bump strip-ansi from 5.2.0 to 6.0.0 (#331)
Bumps [strip-ansi](https://github.com/chalk/strip-ansi) from 5.2.0 to 6.0.0.
- [Release notes](https://github.com/chalk/strip-ansi/releases)
- [Commits](https://github.com/chalk/strip-ansi/compare/v5.2.0...v6.0.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-19 11:06:25 +02:00
dependabot-preview[bot] 90203af31c chore(deps-dev): bump @types/react from 16.9.34 to 16.9.35 (#332)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.34 to 16.9.35.
- [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>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-19 11:06:08 +02:00
dependabot-preview[bot] 43b12911a5 chore(deps-dev): bump release-it from 13.6.0 to 13.6.1 (#322)
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.0 to 13.6.1.
- [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.0...13.6.1)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-18 11:12:01 +02:00
dependabot-preview[bot] e7e7f1bd7b chore(deps-dev): bump @babel/core from 7.9.0 to 7.9.6 (#323)
Bumps [@babel/core](https://github.com/babel/babel) from 7.9.0 to 7.9.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.9.0...v7.9.6)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-18 11:11:42 +02:00
dependabot-preview[bot] 18538bf1f6 chore(deps-dev): bump @types/react-native from 0.62.3 to 0.62.10 (#321)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.62.3 to 0.62.10.
- [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-05-18 11:11:12 +02:00
Michał Pierzchała 6288299587 Release 1.14.0 v1.14.0 2020-05-18 09:43:34 +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
dependabot-preview[bot] c482f6ad07 chore(deps-dev): bump release-it from 12.6.3 to 13.6.0 (#312)
Bumps [release-it](https://github.com/release-it/release-it) from 12.6.3 to 13.6.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/12.6.3...13.6.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-15 20:05:47 +02:00
dependabot-preview[bot] 966f7957c1 chore(deps-dev): bump eslint from 6.8.0 to 7.0.0 (#315)
Bumps [eslint](https://github.com/eslint/eslint) from 6.8.0 to 7.0.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/v6.8.0...v7.0.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-15 19:52:51 +02:00
dependabot-preview[bot] 5297a0468a chore(deps-dev): bump @release-it/conventional-changelog (#314)
Bumps [@release-it/conventional-changelog](https://github.com/release-it/conventional-changelog) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/release-it/conventional-changelog/releases)
- [Commits](https://github.com/release-it/conventional-changelog/compare/1.1.3...1.1.4)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-15 19:52:35 +02:00
dependabot-preview[bot] 4269564112 chore(deps-dev): bump typescript from 3.8.3 to 3.9.2 (#313)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v3.9.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-05-15 19:47:20 +02:00
dependabot-preview[bot] 078499ec5b chore(deps-dev): bump conventional-changelog-cli from 2.0.31 to 2.0.34 (#316)
Bumps [conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog) from 2.0.31 to 2.0.34.
- [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases)
- [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-cli@2.0.31...conventional-changelog-cli@2.0.34)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-15 19:46:39 +02:00
Michał Pierzchała 29ce4f2b48 chore: bump eslint config to latest (#308)
* chore: bump eslint config to latest

* lint fix

* lint pass

* use roles directly
2020-05-15 10:10:49 +02:00
Maciej Jastrzebski ab34712133 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>
2020-05-15 09:52:33 +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
Maciej Jastrzebski 51bd418ba7 docs: added warnings for *ByTestId queries (#305)
* Added usage notes for ByTestId queries

* Update website/docs/Queries.md

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

* Update website/docs/Queries.md

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

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-14 10:26:06 +02:00
Kenneth Kwakye-Gyamfi 58055d8998 docs: migrate to Docusaurus v2 (#299)
* Migration to Docusaurus v2.0.0

* update lock file

* add algolia search

* update GH Pages deploy

* make sidebar non-collapsible for now

* update theme colors

* ignore docusaurus-specific import aliases, remove home-container class

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-13 10:28:32 +02:00
Michał Pierzchała 16718c3d6c chore: bump React Native to 0.63 RC (#301) 2020-05-12 13:45:41 +02:00
Michał Pierzchała 298a13831b chore: upgrade Jest deps to 26 (#302) 2020-05-12 13:34:32 +02:00
Maria Marchenkova c8395ef947 feat: query nested text nodes (#293)
* feat: query nested text nodes

* test on nested text nodes

* test on custom component, refactor

* remove comments

* move textContent out of module scope, fixup children check

Co-authored-by: Mariia Marchenkova <marchewka@Mariias-MacBook-Pro.local>
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-11 19:13:15 +02:00
Kenneth Kwakye-Gyamfi 53dc00acc9 Redux Integration (#292)
* Redux example

* Reviews implemented

* Redux integration example

* Update docs/ReduxIntegration.md

* Update docs/ReduxIntegration.md

* Resolution of reviews put in by @thymikee

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-08 16:49:49 +02:00
Kenneth Kwakye-Gyamfi 3e125d20f4 Remove use of getByTestID in documentation and tests (#294)
* Switched most tests from using test IDs

* Docs updated to use alternatives
2020-05-08 16:37:28 +02:00
Kenneth Kwakye-Gyamfi ae3d4af370 docs: add Redux example (#291)
* Redux example

* Reviews implemented
2020-05-05 10:51:29 +02:00
Jeroen Vannevel 83b28b227d fix: *ByText would call toString() on objects and only match on [object Object] (#290) 2020-05-01 13:54:12 +02:00
Michał Pierzchała 360a53d533 v1.13.2 v1.13.2 2020-04-24 12:25:27 +02:00
Michał Pierzchała 1f6bc249f2 docs: fix readme example (#288) 2020-04-24 12:24:57 +02:00
Michał Pierzchała 68bfe6343c v1.13.1 v1.13.1 2020-04-24 12:22:13 +02:00
Kenneth Kwakye-Gyamfi 0b00faeef7 Include links to the repository and the homepage (#287) 2020-04-24 12:15: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
Michał Pierzchała 1efb814730 docs: fix a link to example (#286) 2020-04-23 16:33:35 +02:00
Michał Pierzchała 61a83e9bb7 chore: update GettingStarted example with something you can run (#284) 2020-04-23 16:27:01 +02:00
Michał Pierzchała b0e5e1baea chore: regenerate lock files to remove vulnerability warnings (#285) 2020-04-23 16:24:06 +02:00
Jesse R Weigel c0e557c44b Fix unclear sentence and misuse of word 'stand' (#278)
* Fix unclear sentence and misuse of word 'stand'

This sentence was not very clear. Also, the word 'stand' was used, but I think the word 'understand' was what was intended.
The sentence has been updated to convey what I think was the intended meaning.

* Update docs/GettingStarted.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-04-21 20:42:05 +02:00
Michał Pierzchała d8fd1543e4 chore: bump RN to 0.62 (#273)
* chore: bump RN to 0.62

* disable accessibilityStates tests; fixups
2020-04-20 11:40:09 +02:00
Kacper Wiszczuk 0ecf788171 chore: fix inconsistent flow fails on CI (#269)
* chore: fix inconsistent flow fails on CI

* Make it faster
2020-03-18 20:02:12 +01:00
Kacper Wiszczuk b67227d4b4 chore: lib upgrades (#268)
* Update libs

* Upgrade Typescript

* use flowconfig from 0.61

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-03-18 20:00:31 +01:00
Kacper Wiszczuk 88f55e216d fix: remove gatekeeper badge (#267) 2020-03-18 17:45:14 +01:00
Kacper Wiszczuk 6b02710641 docs: Add new a11y matchers and prepare for 2.x (#263)
* docs: Add new a11y matchers and prepare for 2.x

* Update docs
2020-03-18 14:32:03 +01:00
Kacper Wiszczuk 6d31da215d imp: Deprecate shallow (#264) 2020-03-18 13:03:21 +01:00
Kacper Wiszczuk 9edcd16c72 feat: byA11yValue matcher (#262) 2020-03-18 10:42:20 +01:00
Kacper Wiszczuk 960080d210 imp: Re-alias deprecated matchers and warn (#261)
* imp: Re-alias deprecated matchers

* Prepare for byName deletion
2020-03-18 10:30:41 +01:00
Kacper Wiszczuk 62cda2205b feat: byA11yState matcher (#260)
* feat: byA11yState matcher

* Kick CI

* Update src/helpers/a11yAPI.js

Co-Authored-By: Michał Pierzchała <thymikee@gmail.com>

* Correct types

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-03-18 10:06:31 +01:00
dependabot[bot] db087f7108 chore(deps): bump acorn from 6.1.1 to 6.4.1 (#258)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.1.1 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.1.1...6.4.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-14 10:32:09 +01:00
Sylvain Pace dd77e4bd28 feat(website): add DocSearch as recommended by docusaurus. (#254) 2020-02-21 11:18:02 +01:00
Michał Pierzchała 6dbf94ff85 docs: clarify how queryBy behaves (#251) 2020-02-01 08:19:19 -06:00
dependabot[bot] 0e40023d8a chore(deps): bump handlebars from 4.1.2 to 4.5.3 (#244)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-01-22 21:21:34 -06:00
Michał Pierzchała 31ed2c48e3 chore: bump jest to v25 (#249) 2020-01-22 21:14:48 -06:00
Hugo Duprat 0840d44aee fix: (getByText) more robust null/undefined check for text children (#239)
* fix: (getNodeByText) explicitly check if child is undefined or null

* test: Update getByText test cases
2020-01-09 19:59:29 +01:00