954 Commits

Author SHA1 Message Date
Maciej Jastrzebski 3c6297197c chore: release 12.4.5 v12.4.5 2024-03-28 18:20:21 +01:00
Maciej Jastrzebski b2a29b171a fix: find by timeout with detached screen (#1576)
* fix: improve error findBy* error message when screen is not beign attached.

* fix: detect detached screen and display proper error message.

* chore: improve error message

* chore: update link

* chore: update snapshots
2024-03-28 18:14:36 +01:00
Maciej Jastrzebski 9b252f8b60 docs: update docs about eslint rule (#1578)
* fix: relevant issues indicated by the eslint rule

* chore: rename file

* docs: move eslint to getting-started; cleanup legacy stuff
2024-03-28 15:38:12 +01:00
Maciej Jastrzębski 2a25531803 chore: release 12.4.4 v12.4.4 2024-03-18 21:00:58 +01:00
Jose Luis Leon b4d264f756 fix(user-event): Decouple press events from Jest dependency (#1571)
* fix(user-event): Decouple press events from Jest dependency

* Add warnAboutRealTimersIfNeeded() tests

* Address @mdjastrzebski feedback

* refactor: code review changes
2024-03-18 20:55:17 +01:00
Maciej Jastrzebski 371534b8f7 docs: improve api docs (#1535)
* docs: improve query docs

* docs: tweaks
2024-03-12 22:26:08 +01:00
Maciej Jastrzebski bab4097836 chore: update deps 2024-03-12 (#1570)
* chore: update 1

* chore: update @types/*

* chore: update react native

* chore: update eslint & typescript

* chore: fix lint

* chore: upgrade release it

* chore: reformat

* chore: disable flow validation
2024-03-12 11:37:06 +01:00
Steve Galili 4e148bdb05 chore: tweak docs and examples to match recommended practices 2024 (use screen object for queries) (#1561)
* chore: tweak docs and examples to match modern usage of lib.

Use screen object for queries (pt.1)

Use screen object for queries (pt.2)

update render docs to modern screen API and fix lint

* refactor: code review tweaks

---------

Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
2024-03-11 22:46:07 +01:00
Dony Sukardi 4c6ec4f1fc fix typo in UserEvent.md (#1569) 2024-03-10 17:17:29 +01:00
Davyd NRB 536d2a979d Node.js 16 actions are deprecated. (#1567)
Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3.
For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-02-27 10:12:50 +01:00
Maciej Jastrzebski a670b2d4c1 chore: upgrade basic example to expo 50 (#1560) 2024-01-30 09:59:44 +00:00
Maciej Jastrzebski a282d1ecdd Update CommunityResources.md 2024-01-26 16:21:08 +00:00
Maciej Jastrzebski 67fb7177cf docs: update community resources (#1558)
* docs: update community resources

* docs: fix typos
2024-01-26 15:42:28 +00:00
Steve Galili 3e2060d89f docs: add note user.scrollTo in favour of fireEvent.scroll and edit broken links (#1551)
* add note user.scrollTo in favour of fireEvent.scroll and edit broken links

* Update website/docs/API.md

---------

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2024-01-10 13:07:59 +01:00
Maciej Jastrzebski b222792320 chore: upgrade docusaurus (#1552)
* chore: upgrade docusaurus

* chore: improve color constrast on website in light mode
2024-01-05 13:17:42 +01:00
Maciej Jastrzebski 21254b059a chore: reformat source using prettier (#1550)
* chore: reformat source using prettier
* chore: fix lint
2024-01-03 22:31:12 +01:00
Maciej Jastrzebski 78994129f8 docs: updates to docs (#1547)
* docs: update TestingEnv doc

* docs: update Contributing.md

* docs: update UserEvent.md

* docs: remove tocs

* docs: remove no-longer working FlatList examples for `fireEvent.scroll()`
2024-01-03 22:10:17 +01:00
Maciej Jastrzębski 97ebb99dec chore: release 12.4.3 v12.4.3 2023-12-28 15:02:38 +01:00
Maciej Jastrzebski 464e986350 docs: jsdoc for Jest matchers (#1548)
* docs: add jsdocs for jest matchers

* docs: fix formatting issues

* docs: tweaks
2023-12-27 14:13:10 +01:00
Maciej Jastrzebski 4c20d70833 chore: release 12.4.2 v12.4.2 2023-12-18 16:02:40 +01:00
Maciej Jastrzebski 4b2dfc5c58 chore: tweak release-it 2023-12-18 14:22:03 +01:00
Maciej Jastrzebski 355b667ee4 chore: add release it (#1546)
* chore: add release-it

* chore: basic release it setup

* chore: reorder package.json sections
2023-12-18 14:20:55 +01:00
Jakub Piasecki edf52b625a Add option to pass contentSize and layoutMeasurement when calling scrollTo (#1543)
* Add option to pass `contentSize` and `layoutMeasurement` when calling `scrollTo`

* Update docs

* Add tests

* refactor: code review changes

* refactor: code review changes

* refactor: code review changes

* docs: fix typo

---------

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2023-12-15 18:32:08 +01:00
Maciej Jastrzebski 3ba97e35b9 chore: remove renovate (#1539) 2023-11-30 14:35:04 +01:00
Maciej Jastrzebski 36dcb8be81 v12.4.1 v12.4.1 2023-11-30 13:47:44 +01:00
Maciej Jastrzebski 45037f68d7 fix: user event add target prop (#1538)
* fix: add empty target and current target event props

* chore: update snapshot tests

* refactor: move noisy snapshot to separate files
2023-11-30 13:45:19 +01:00
Maciej Jastrzebski 7acec0cba4 fix: matcher Jest extensions (#1537)
* fix: matcher Jest extensions
* docs: add typedocs
2023-11-30 13:38:56 +01:00
Maciej Jastrzebski 067462f50a chore: fix extend-expect.d.ts types by internalizing them (#1536) 2023-11-29 10:19:12 +01:00
Maciej Jastrzebski 01c770d342 chore: deps update 2023-11-27 (#1533)
* chore: upgrade deps

* chore: regen yarn.lock
2023-11-28 10:23:03 +01:00
Maciej Jastrzebski d003cd57ab docs: remove beta status for User Event (#1532) 2023-11-27 23:37:01 +01:00
Maciej Jastrzebski 8a48e5ba59 docs: rewrite How should I query? guide (#1531)
* docs: describe query variants

* docs: tweaks

* docs: tweaks

* docs: more content

* docs: tweaks

* docs: tweaks

* docs: tweaks

* docs: update caniuse

* docs: tweaks

* docs: tweaks

* docs: tweaks

* docs: tweaks
2023-11-27 19:03:09 +01:00
Maciej Jastrzebski a3489b3a44 RFC/feat: default accessibility roles (#1490)
* feat: default accessibility roles

* chore: remove default text input role

* chore: update tests

* chore: update docs
2023-11-27 17:32:58 +01:00
Maciej Jastrzebski ab679c9075 docs: spell-check the docs (#1529) 2023-11-15 22:35:25 +01:00
Maciej Jastrzebski 413ad210d1 chore: update & check example packages (#1528) 2023-11-14 12:52:00 +01:00
Maciej Jastrzebski ca32d3e63c v12.4.0 v12.4.0 2023-11-14 12:25:12 +01:00
Maciej Jastrzebski 2bce396a46 docs: expose jest matchers publically (docs, examples, etc) (#1523)
* docs: update references to Jest Native

* chore: update docs

* chore: update example apps

* docs: update

* chore: upgrade example apps

* chore: self code review

* chore: docs tweaks

* docs: code review changes
2023-11-14 12:23:24 +01:00
Maciej Jastrzebski bc1ec0d065 v12.3.3 v12.3.3 2023-11-13 18:17:25 +01:00
Maciej Jastrzebski aad0849038 Dependabot/npm and yarn/callstack/eslint config 14.0.0 (#1526)
* chore(deps-dev): bump @callstack/eslint-config from 13.0.2 to 14.0.0

Bumps [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack) from 13.0.2 to 14.0.0.
- [Release notes](https://github.com/callstack/eslint-config-callstack/releases)
- [Commits](https://github.com/callstack/eslint-config-callstack/compare/v13.0.2...v14.0.0)

---
updated-dependencies:
- dependency-name: "@callstack/eslint-config"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* refactor: fix lint issues

* refactor: fix lint issues

* refactor: fix lint issues

* refactor: fix lint issues

* chore: update callstack-eslint config

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 18:04:55 +01:00
Maciej Jastrzebski 4549e7b708 chore: expose Jest Native exports (#1522)
* chore: expose Jest Native exports

* chore: update files
2023-11-13 17:30:00 +01:00
Maciej Jastrzebski 80e64cff56 chore: enable Yarn 4 on CI (#1525)
* chore: enable Yarn 4 on CI (attempt 1)

* chore: attempt 2

* chore: attempt 3

* chore: attempt 4

* chore: attempt 5

* chore: fix website

* chore: fix attempt 6'
2023-11-13 17:29:36 +01:00
Maciej Jastrzebski 817d4edb75 chore: modern yarn (4.0) (#1517)
* chore: upgrade to Yarn 4

* chore: upgrade examples/basic

* chore: add git ignores

* chore: upgrade website yarn

* chore: fix yarn scripts

* chore: git ignore tweaks

* chore: git ignore tweaks
2023-11-13 14:16:47 +01:00
Maciej Jastrzebski 84ba56e56f docs: Jest matchers docs (#1506)
* docs: v1 of jest matchers docs

* chore: add TOC

* chore: tweak heading levels

* docs: tweaks

* docs: cross references

* docs: tweaks

* docs: tweaks

* docs: tweaks

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/JestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/MigrationJestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* Update website/docs/MigrationJestMatchers.md

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>

* docs: spellchecking

* chore: final fixes

---------

Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
2023-11-09 17:10:50 +01:00
Anisha Malde 2ada536829 feat: toHaveAccessibleName matcher (#1509)
* feat: toHaveAccessibleName matcher

* feat: toHaveAccessibleName matcher

* feat: toHaveAccessibleName matcher

* refactor: check logic

* chore: fix lint

* refactor: tests

* chore: test tweaks

---------

Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
2023-11-08 10:44:51 +01:00
Jovan Goh b0194791ad fix: change broken hyperlink in README.md (#1520) 2023-11-06 22:18:14 +01:00
Maciej Jastrzebski 9757e5bfbf v12.3.2 v12.3.2 2023-10-30 14:59:15 +01:00
Chris Erickson a6c078cc50 Adds typedefs for pure (#1516)
* Adds typedefs for pure
* chore: add new line
2023-10-30 14:55:04 +01:00
Maciej Jastrzebski 3af4b8c867 refactor: rename files (#1515)
* refactor: rename files to match convention

* chore: refactor more

* chore: fix tests
2023-10-25 14:12:53 +02:00
Tarun Chauhan 28c872904f Implement toHaveAccessibilityValue matcher (#1496)
* feat: add toHaveAccessibilityValue matcher

* refactor: clenup

* refactor: clean up tests

* refactor: self review

---------

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2023-10-25 13:47:23 +02:00
Maciej Jastrzębski 798100bf04 v12.3.1 v12.3.1 2023-10-24 18:16:15 +02:00
Pierre Zimmermann 328466dffc Fix: switch IS_REACT_ACT_ENVIRONMENT in userEvent (#1491)
* fix: use act in wait util

* refactor: remove useless usage of act in press implem

* refactor: make test fail by checking console.error is not called

* refactor: extract async wrapper from waitFor implem

* feat: use asyncWrapper for userEvent to prevent act warnings

* refactor: add comment making test on act environment more explicit

* refactor: move asyncWrapper to helper folder cause its not direclty tied to userevent

* refactor: add comment in asyncWrapper

* refactor: move UE `act` test to UE `press` tests

* refactor: tweaks

* refactor: naming tweaks

* chore: revert unnecessary filename change

* chore: exclude code cov for React <= 17

* chore: disable codecov for wrap-async

---------

Co-authored-by: pierrezimmermann <pierrez@nam.tech>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2023-10-23 12:49:13 +02:00