Commit Graph

179 Commits

Author SHA1 Message Date
Maciej Jastrzebski 3abeac3eb4 Merge branch 'main' into v13
# Conflicts:
#	jest-setup.ts
2024-10-25 09:45:14 +02:00
Maciej Jastrzebski f231ea30b2 feat: option for enabling concurrent rendering (#1685) 2024-10-25 09:06:41 +02:00
Maciej Jastrzębski c7f9132c28 Merge branch 'main' into v13
# Conflicts:
#	package.json
#	src/__tests__/__snapshots__/render-debug.test.tsx.snap
#	yarn.lock
2024-10-24 09:55:22 +02:00
George Raphael 7bc0d5dbe9 Update queries.mdx (#1680)
Remove unnecessary 'the' from sentence in documentation
2024-10-18 14:35:03 +02:00
Steve Galili f314fe007f docs: cookbook shoutout ready (#1672)
* update cookbook app libs. and fix navigation to network requests examples

* Update cookbook/README.md

* Update README.md (2)

* Update Cookbook's Intro. sec. in docs

* upload readme banner

* arranging readme assets

---------

Co-authored-by: stevegalili <steve.galili@mywheels.nl>
2024-09-30 09:28:19 +02:00
Steve Galili bd98be05c6 docs(cookbook): network requests recipes (#1655)
* squash prev commits

* remove unneeded axios mock

* set maxWorkers=2

* run with a slow test reporter

* revert: run with a slow test reporter

* Add url check to mock and further reading and alternatives

* use MSW for all API calls in cookbook test suits

* Comments with implem. explanation

* Arrange docs initially to reflect new scenario and remove jest.setTimeout

* updating docs (1)

* updating docs (2)

* updating docs with global guarding and conclusion

---------

Co-authored-by: stevegalili <steve.galili@mywheels.nl>
2024-09-18 09:51:53 +02:00
Maciej Jastrzebski e6d06a7aaa Merge branch 'main' into v13
# Conflicts:
#	src/queries/__tests__/accessibility-state.test.tsx
2024-09-12 09:30:11 +02:00
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 Jastrzębski a3e1c5aeff Merge branch 'main' into v13
# Conflicts:
#	src/queries/__tests__/accessibility-state.test.tsx
#	yarn.lock
2024-09-05 10:30:22 +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
Maciej Jastrzębski 450e750515 [v13] chore: increase required React et al. versions 2024-08-12 23:07:48 +02:00
Maciej Jastrzebski b5cfb98854 [v13] chore: remove debug shallow (#1601) 2024-08-12 22:51:23 +02:00
Maciej Jastrzebski b797cf4cc5 [v13] chore: remove react 16 & 17 code (#1602)
* chore: remove React 16 & 17 code

chore: remove more

chore: react version 18.3.1

docs: migration guide

* refactor: finish merge
2024-08-12 22:51:23 +02:00
Maciej Jastrzebski 398f09a1c9 [v13] chore: remove deprecated stuff (#1603)
* chore: remove flush microtask legacy

* chore: remove deprecated *ByAccessibilityState, *ByAccessibilityValue queries

* chore: add docs

* docs: add docs
2024-08-12 22:50:25 +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 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 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 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 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