77 Commits

Author SHA1 Message Date
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
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
Michał Pierzchała b0e5e1baea chore: regenerate lock files to remove vulnerability warnings (#285) 2020-04-23 16:24:06 +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 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
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
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
Michał Pierzchała 94ff42527e chore: bump Flow and ESLint preset (#241)
* chore: bump Flow and ESLint preset

* fix name of waitForElement
2019-12-09 11:43:05 +01:00
dependabot[bot] fa7ad1bd32 chore(deps): bump eslint-utils from 1.4.0 to 1.4.2 (#219)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-26 21:48:16 +02:00
dependabot[bot] 642cead458 chore(deps): bump lodash.template from 4.4.0 to 4.5.0 (#216)
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-13 21:44:41 +02:00
Nicolas Charpentier ee2579863d Sync yarn (#213)
* Sync yarn.lock

* Configure CircleCI to use Yarn properly
2019-08-13 21:42:05 +02:00
greenkeeper[bot] dc0d2a041c Update eslint to the latest version 🚀 (#195)
* chore(package): update eslint to version 6.0.0

* chore(package): update lockfile yarn.lock

* Fix linter
2019-07-21 15:54:26 +02:00
Michał Pierzchała 1382a3d7f6 chore: bump React Native to 0.60 (#204) 2019-07-16 18:14:42 +02:00
greenkeeper[bot] 9369efee73 Update flow-bin to the latest version 🚀 (#196)
* chore(package): update flow-bin to version 0.102.0

* chore(package): update lockfile yarn.lock
2019-06-25 19:45:27 +02:00
greenkeeper[bot] 96eef2c557 Update flow-bin to the latest version 🚀 (#192)
* chore(package): update flow-bin to version 0.101.0

* chore(package): update lockfile yarn.lock
2019-06-11 16:23:25 +02:00
Michał Pierzchała 33526030bc chore: update @typescript eslint/eslint plugin to 1.10.2 (#189)
* chore(package): update @typescript-eslint/eslint-plugin to version 1.10.2

* chore(package): update lockfile yarn.lock
2019-06-10 08:40:00 +02:00
dependabot[bot] 3f46d24872 chore(deps): bump js-yaml from 3.12.0 to 3.13.1 (#187)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-06 01:36:03 +02:00
greenkeeper[bot] e5ce263717 Update flow-bin to the latest version 🚀 (#185)
* chore(package): update flow-bin to version 0.100.0

* chore(package): update lockfile yarn.lock
2019-05-31 19:33:29 +02:00
Michał Pierzchała e967f5e67a chore: update release-it config 2019-05-29 09:25:12 +02:00
greenkeeper[bot] 2c181b844e Update flow-bin to the latest version 🚀 (#183)
* chore(package): update flow-bin to version 0.99.0

* chore(package): update lockfile yarn.lock

* Fix flow
2019-05-29 09:13:59 +02:00
Michał Pierzchała 9227012e45 chore: upgrade deps (#182) 2019-05-28 23:04:23 +02:00
Kacper Wiszczuk f635c852d4 chore: flow copy source 2.0.6 (#180)
* chore(package): update flow-copy-source to version 2.0.6

* chore(package): update lockfile yarn.lock
2019-05-28 22:26:37 +02:00
Kacper Wiszczuk f9bc0b263d feat: add a11y queries (#178)
* First implementation of matcher generator

* A11y queries added

* extract prepareErrorMessage

* Add tests

* Make aliases

* Move create queryByError

* Add missing aliases

* simplify valid node check

* add docs

* fix types
2019-05-28 20:47:06 +02:00
Michał Pierzchała efc44157e2 Greenkeeper/release it 12.1.0 (#171)
* chore(package): update release-it to version 12.1.0

Closes #166

* chore(package): update lockfile yarn.lock
2019-05-14 23:36:29 +02:00
greenkeeper[bot] 3fd24c9de4 Update @callstack/eslint-config to the latest version 🚀 (#169)
* chore(package): update @callstack/eslint-config to version 6.0.0

* chore(package): update lockfile yarn.lock
2019-05-11 13:39:10 +02:00
Michał Pierzchała 0b95597f8a chore: upgrade react-native to 0.59.8 (#168)
* chore(package): update react-native to version 0.59.8

* chore(package): update lockfile yarn.lock
2019-05-08 21:17:37 +02:00
greenkeeper[bot] ab5740dd4d Update flow-bin to the latest version 🚀 (#162)
* chore(package): update flow-bin to version 0.98.0

* chore(package): update lockfile yarn.lock
2019-04-26 22:30:20 +02:00
greenkeeper[bot] 7b7518ff97 Update @callstack/eslint-config to the latest version 🚀 (#160)
* chore(package): update @callstack/eslint-config to version 5.0.0

* chore(package): update lockfile yarn.lock
2019-04-23 11:10:52 +02:00
Michał Pierzchała 1938a5091e chore: bump Jest, remove flaky inline snapshot (#150)
### Summary

Bumping Jest to latest, removed inline snapshot as there's a pending bug with trailing whitespaces inside of it being removed by IDEs (solution is to make them regular snapshots, but in this case the test was just plain unnecessary)

### Test plan

CI
2019-04-14 10:41:03 +02:00
greenkeeper[bot] 488a2ca5cc Update flow-bin to the latest version 🚀 (#148)
* chore(package): update flow-bin to version 0.97.0

* chore(package): update lockfile yarn.lock
2019-04-12 20:23:04 +02:00
greenkeeper[bot] d3dedaa84a chore: Update flow-bin to the latest version 🚀 (#145)
* chore(package): update flow-bin to version 0.96.0

* chore(package): update lockfile yarn.lock
2019-04-02 08:35:59 +02:00
greenkeeper[bot] 30fcce5508 chore: update flow-bin to the latest version 🚀 (#133)
## The devDependency [flow-bin](https://github.com/flowtype/flow-bin) was updated from `0.94.0` to `0.95.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

---

[Find out more about this release](https://github.com/flowtype/flow-bin).

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 🌴
2019-03-16 09:18:14 +01:00
greenkeeper[bot] abd1f82898 chore: update @callstack/eslint-config to the latest version 🚀 (#134)
## The devDependency [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack) was updated from `3.0.2` to `4.0.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

---

[Find out more about this release](https://github.com/callstack/eslint-config-callstack).

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 🌴
2019-03-16 09:11:32 +01:00
greenkeeper[bot] ce3bf28f30 chore: update react-native to the latest version 🚀 (#130)
* chore(package): update react-native to version 0.59.0

* chore(package): update lockfile yarn.lock

* update snapshots
2019-03-12 21:06:20 +01:00
Michał Pierzchała 1c8eb106a5 chore: update metro and merge deps (#124)
### Summary

We have a security alert around `merge` so I bumped that, also upgraded to latest metro preset version (it's still Node 8 compatible), updated RN to 0.58.6

Removed the version check for Flow as we always use local version anyway.

### Test plan

Check build directory
2019-03-01 15:47:39 +01:00
greenkeeper[bot] b512329d94 Update flow-bin to the latest version 🚀 (#123)
## The devDependency [flow-bin](https://github.com/flowtype/flow-bin) was updated from `0.93.0` to `0.94.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

---

[Find out more about this release](https://github.com/flowtype/flow-bin).

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 🌴
2019-03-01 15:02:54 +01:00
Kacper Wiszczuk 11489b0e5e feat: wrap render with act() for better React Hooks support (#122) 2019-02-28 21:53:26 +01:00
Kacper Wiszczuk 6e6d14fa43 Greenkeeper/eslint 5.14.1 (#120)
* chore(package): update eslint to version 5.14.1

* chore(package): update lockfile yarn.lock
2019-02-22 22:30:34 +01:00
greenkeeper[bot] 4f433cad59 Update flow-bin to the latest version 🚀 (#91)
## The devDependency [flow-bin](https://github.com/flowtype/flow-bin) was updated from `0.88.0` to `0.89.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

---

[Find out more about this release](https://github.com/flowtype/flow-bin).

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 🌴
2019-02-15 21:21:39 +01:00
Michał Pierzchała 2ccadbe57f chore: bump RN dev dep to 0.58 (#110)
### Summary

Using latest RN for testing.

### Test plan

No new tests added, it's an upgrade
2019-02-06 10:12:48 +01:00