236 Commits

Author SHA1 Message Date
Maciej Jastrzebski f69d1d5a89 refactor: simplify native state management (#1662)
* refactor: improve native state management

* feat: add fireEvent.scroll support for scroll native events
2024-09-09 11:44:46 +02:00
Maciej Jastrzebski 856332cc5b feat: support Switch checked state (#1657) 2024-09-06 16:43:59 +02:00
Aman Mittal e6497d28b5 docs: Update outdated Expo command in Troubleshooting guide (#1660) 2024-09-05 23:45:56 +02:00
Maciej Jastrzebski b6c33d0082 refactor: remove real timers warning in User Event (#1654)
* refactor: remove real timers warning in User Event

* chore: tweak docs
2024-08-28 10:02:19 +02:00
Vojtech Novak 239e046798 docs: add missing assignment in render.mdx (#1649)
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2024-08-25 17:16:00 +02:00
Maciej Jastrzebski 38bceed25b feat: user event paste (#1646) 2024-08-16 16:44:58 +02:00
Steve Galili 2f4568a29b chore: revamp the cookbook app (#1635)
* create a Jotai examples dir in cookbook with related utils, add state management recipes dir

* add docs with examples

* extract state from component to state, utils, simplify types and custom render func.

* refactor: tweaks & cleanup

* make cookbook app runnable

* update yarn.lock file

* fix TS issue and spelling

* remove duplicate files and adjust testMatch in config to ensure no utils test run

---------

Co-authored-by: stevegalili <steve.galili@mywheels.nl>

refactor: tweak cookbook (#1636)

* refactor: move files around

* refactor: simplify

* chore: remove custom fonts

* chore: tweak eslint

* chore: update yarn.lock
2024-07-16 11:23:36 +02:00
Steve Galili d31c05aee3 docs: add jotai to cookbook (#1634)
* create a Jotai examples dir in cookbook with related utils, add state management recipes dir

* add docs with examples

* extract state from component to state, utils, simplify types and custom render func.

* refactor: tweaks & cleanup

---------

Co-authored-by: stevegalili <steve.galili@mywheels.nl>
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
2024-07-12 14:39:24 +02:00
Maciej Jastrzebski 01d319c577 docs: async tests [Cookbook] (#1631)
* wip: async tests

* docs: tweaks

* docs: final tweaks
2024-06-21 10:13:01 +02:00
Maciej Jastrzebski 723c8e2c04 docs: basic cookbook docs and app (#1622)
* docs: basic cookbook docs and app

* chore: add tests

* chore: enable example apps

* chore: fix typecheck

* chore: add lint & fix issues

* docs: tweaks

* docs: tweaks

* docs: tweaks

* chore: tweaks
2024-05-28 12:24:05 +02:00
Maciej Jastrzebski 64e1e32737 docs: fix readme (#1620)
* docs: fix readme

* docs: tweak home page
2024-05-24 19:22:30 +02:00
Maciej Jastrzebski e8b800b62d chore: fix owl logo (#1619) 2024-05-24 18:56:37 +02:00
Maciej Jastrzebski 49618c6019 docs: fix links (#1618) 2024-05-24 15:33:28 +02:00
Maciej Jastrzebski 3cdfb8561d docs: migrate docs to RSPress (#1617)
* chore: copy Re.pack docs

* chore: global configs

* docs: migrate getting started

* chore: migrate intro

* docs: move migration guides

* chore: remove some unused things

* docs: move API

* docs: re-organize docs

* docs: re-organize

* chore: fix file refs

* docs: tweaks and fixes

* docs: reorganize docs

* chore: replace website

* chore: deploy script
2024-05-24 15:14:01 +02:00
Maciej Jastrzebski 1b732d6d49 chore: remove stale examples (#1608) 2024-05-07 15:04:10 +02:00
Maciej Jastrzebski a0aa92f06e chore: upgrade deps 2024-05-05 (#1606) 2024-05-06 17:39:04 +02:00
Maciej Jastrzebski 913a19bbcb docs: API overview tweaks (#1599)
* docs: api overview tweaks

* docs: update README
2024-04-30 11:07:41 +02:00
Maciej Jastrzebski accac2f29a docs: tweaks 2024-04-30 10:44:28 +02:00
Maciej Jastrzebski f2b4754fca docs: update README 2024-04-30 10:44:05 +02:00
Maciej Jastrzebski 75efa72c59 docs: api overview page 2024-04-30 10:40:11 +02:00
Maciej Jastrzebski 16b9e493f7 refactor: pass through Test Renderer options (#1594) 2024-04-26 23:14:43 +02:00
Maciej Jastrzebski 73bef94a4b docs: improve api docs (#1590) 2024-04-25 14:37:01 +02:00
Davyd NRB c81c89bdf9 Apply eslint-plugin-testing-library for test files only (#1581) 2024-04-02 10:49:48 +02: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 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
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 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
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 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 ab679c9075 docs: spell-check the docs (#1529) 2023-11-15 22:35:25 +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 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
Maciej Jastrzebski d36137bcd1 docs: troubleshooting undefined components (#1502) 2023-09-19 11:16:04 +02:00
Andrew f538029201 docs: note required RNTL version for user-event in user-event.md (#1494)
* docs: note required RNTL version for user-event in user-event.md

* chore: tweak wording

* chore: tweak

* chore: tweaks

---------

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2023-09-18 22:13:55 +02:00
Nick McCurdy a0160620da Upgrade Node for security (#1498) 2023-09-15 22:39:11 +02:00
Wiktor Sieprawski a7ea95d3d7 feat: user event scroll (#1445)
* feat: setup dummy scroll endpoint

* chore: use ScrollEventBuilder

* chore: enhance API endpoint with parameters

* chore: emit multiple scroll events

* fix: intermediate steps offset values

* feat: momentum scroll

* chore: add scroll to userEvent

* feat: scrollToTop

* feat: remember scroll position for element

* fix: setting and getting scroll state

* chore: validate host component type

* chore: validate and emit intermediate callbacks in scrollToTop

* chore: fix ts

* refactor: rename scroll to scrollTo

* refactor: y & x scrollTo params

* refactor: refactor y, x params to support explicit steps

* chore: fix typecheck

* refactor: improve typing

* refactor: momentumY, momentumX options

* docs: initial docs for `scrollTo`

* refactor: descope `scrollToTop` variant

* docs: tweaks

* refactor: improve TS typing by separating vertical/horizontal scroll

* refactor: wrap scroll event in nativeEvent wrapper

* refactor: clean up implementation

* chore: add FlatList tests

* refactor: remove explicit steps

* refactor: introduce inertial interpolator for momentum scroll

* docs: update docs

* chore: update snapshots

* refactor: code review changes

* feat: validate scroll direction

* docs: tweaks

* docs: tweak

* refactor: add more tests to improve code cov

* refactor: improve errors

* refactor: code review tweaks

* refactor: add wait calls

* refactor: tweaks, tweaks, tweaks

* refactor: final tweaks

---------

Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
2023-09-13 12:05:56 +02:00
Maciej Jastrzebski 3fa6c457ea feat: aria-value* props support (#1480)
* feat: aria-value* props support

* refactor: tweaks

* chore: fix code cov
2023-09-06 17:16:21 +02:00
Maciej Jastrzebski 5dbd04f4be feat: aria-modal support (#1481)
* feat: `aria-modal` support

* chore: add API assumptions tests
2023-09-06 12:37:08 +02:00
Maciej Jastrzebski 3ff0afb119 docs: setup automatic table of contents (#1482)
* docs: automate table of contents for all pages
* docs: custom anchors
* docs: tweaks
2023-08-31 22:33:03 +02:00