Commit Graph

1136 Commits

Author SHA1 Message Date
Maciej Jastrzebski 383c241d2e feat(v13): enable concurrent rendering by default (#1692)
* feat!: enable concurrent rendering by default

* chore: tweaks
2024-10-25 10:02:02 +02:00
Maciej Jastrzebski 3abeac3eb4 Merge branch 'main' into v13
# Conflicts:
#	jest-setup.ts
2024-10-25 09:45:14 +02:00
Maciej Jastrzebski 0c8f3a8ec2 chore: update RNTL in example apps (#1691) 2024-10-25 09:43:37 +02:00
Maciej Jastrzebski bc083af5aa chore: release v12.8.0 v12.8.0 2024-10-25 09:28:17 +02:00
Maciej Jastrzebski 422c007f83 chore: tweak release it 2024-10-25 09:26:47 +02:00
Maciej Jastrzebski f231ea30b2 feat: option for enabling concurrent rendering (#1685) 2024-10-25 09:06:41 +02:00
ELABBASSI Hicham 8e1e6ac514 docs: readme example userevent import (#1688) 2024-10-25 08:52:40 +02:00
Maciej Jastrzebski 7455b21618 feat: automatically extend matchers (#1684) 2024-10-24 10:30:42 +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
Maciej Jastrzebski c56b223a5a chore: upgrade deps 2024-10-24 (#1683) 2024-10-24 09:42:12 +02:00
Maciej Jastrzebski a60ce287e1 refactor: 0.76 stable tweaks (#1682) 2024-10-24 09:36:26 +02:00
dependabot[bot] 0305877e50 chore(deps-dev): bump @release-it/conventional-changelog (#1675)
Bumps [@release-it/conventional-changelog](https://github.com/release-it/conventional-changelog) from 8.0.1 to 9.0.0.
- [Release notes](https://github.com/release-it/conventional-changelog/releases)
- [Commits](https://github.com/release-it/conventional-changelog/compare/8.0.1...9.0.0)

---
updated-dependencies:
- dependency-name: "@release-it/conventional-changelog"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-18 15:51:47 +02:00
George Raphael 7bc0d5dbe9 Update queries.mdx (#1680)
Remove unnecessary 'the' from sentence in documentation
2024-10-18 14:35:03 +02:00
Maciej Jastrzebski 0e8555066e chore: React Native 0.76 support (#1664) 2024-10-18 11:10:22 +02:00
dependabot[bot] 19da22c243 chore(deps-dev): bump del-cli from 5.1.0 to 6.0.0 (#1673)
Bumps [del-cli](https://github.com/sindresorhus/del-cli) from 5.1.0 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/del-cli/releases)
- [Commits](https://github.com/sindresorhus/del-cli/compare/v5.1.0...v6.0.0)

---
updated-dependencies:
- dependency-name: del-cli
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-09 17:32:49 +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 60dd2e6c45 chore: release 12.7.2 v12.7.2 2024-09-12 11:58:34 +02:00
Maciej Jastrzebski 7ba47b812d fix: use native state across the queries and matchers (#1667)
* fix: improve text input value getting in type, clear, paste

* chore: migrate other use-cases to use `getTextInputValue`

* chore: add relevant tests

* refactor: self code review

* refactor: self code review
2024-09-12 11:54:37 +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 839001124d chore: update examples RNTL dep 2024-09-12 09:25:28 +02:00
Maciej Jastrzebski ddf3946244 chore: release 12.7.1 v12.7.1 2024-09-12 09:21:12 +02:00
Maciej Jastrzebski 74bf842ca9 chore: release 12.7.0 v12.7.0 2024-09-12 09:16:41 +02:00
Maciej Jastrzebski 9b268967ce chore: tweak scripts 2024-09-12 09:15:31 +02:00
Maciej Jastrzebski 04c7ee4080 feat: support Image with alt prop as label (#1665)
* refactor: detect Image host component name

* feat: support Image alt prop in *ByLabelText

* feat: support *ByRole queries

* feat: support toHaveAccessibleName matcher

* chore: fix typecheck

* refactor: self code review

* refactor: adjust finding to experiment results

* chore: add missing tests

* refactor: self code review

* refactor: self code review

* refactor: self-code review
2024-09-12 09:08:10 +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
Maciej Jastrzebski bf7ea4c7f4 refactor: scroll view native state (#1661)
* refactor: move scroll state into native state

* refactor: simplify types

* refactor: renaming
2024-09-06 16:42:06 +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
dependabot[bot] 345be3fe0a chore(deps-dev): bump @callstack/eslint-config from 14.2.0 to 15.0.0 (#1650)
* chore(deps-dev): bump @callstack/eslint-config from 14.2.0 to 15.0.0

Bumps [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack) from 14.2.0 to 15.0.0.
- [Release notes](https://github.com/callstack/eslint-config-callstack/releases)
- [Commits](https://github.com/callstack/eslint-config-callstack/compare/v14.2.0...v15.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>

* chore: fix lint issues

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
2024-09-03 10:04:34 +02:00
Maciej Jastrzebski 22ec13d0e5 refactor: accessibility handling (#1658)
* refactor: improve code structure

* refactor: more tweaks
2024-09-03 09:41:47 +02:00
Maciej Jastrzebski 4112abcf0a feat: simulated native TextInput state (#1653)
* feat: basic text input state

* refactor: self code review

* refactor: code review changes
2024-09-03 09:15:14 +02:00
Maciej Jastrzębski 899de72aaf chore: release 12.6.1 v12.6.1 2024-08-28 10:15:07 +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 Jastrzębski 3b098b2592 chore: release 12.6.0 v12.6.0 2024-08-16 16:53:46 +02:00
Maciej Jastrzebski 4c1f6cd6ae chore: package.json cleanup (#1648) 2024-08-16 16:50:41 +02:00
Maciej Jastrzebski 38bceed25b feat: user event paste (#1646) 2024-08-16 16:44:58 +02:00
Maciej Jastrzebski 46350912d3 chore: upgrade RN (#1647) 2024-08-16 16:41:49 +02:00
Maciej Jastrzebski f0df2994df feat: remove 'textInput' event from UserEvent type() (#1645) 2024-08-13 20:30:48 +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
Maciej Jastrzebski 430213faa4 chore: check React Native 0.75 compatibility & deps upgrade (#1643) 2024-08-12 22:43:19 +02:00
Maciej Jastrzębski 1311d6612d chore: release 12.5.3 v12.5.3 2024-08-09 15:54:59 +02:00
Maciej Jastrzebski 63035b80da chore: remove broken experiments-rtl app (#1642) 2024-08-09 15:52:36 +02:00
Joshua Yoes 6a51a81728 fix: Respect maxLength prop in type() function (#1641)
* fix: Respect maxLength prop in type() function

This commit modifies the `type()` function to respect the `maxLength` prop of the input element. If the current text length exceeds the `maxLength` value, typing events will not be emitted. This ensures that the input value does not exceed the specified maximum length.

1. Create an input element with a `maxLength` prop.
2. Use the `type()` function to input text that exceeds the `maxLength` value.
3. Verify that the input value does not exceed the specified maximum length.
4. Check that no typing events are emitted once the `maxLength` is reached.

Additionally, see that `yarn test` passes with an additional test added to `src/user-event/type/__tests__/type.test.tsx`

* refactor: code review changes

* refactor: tweaks

* refactor: final tweaks

* refactor: final tweaks 2

* chore: tweak codecov

---------

Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
2024-08-09 15:49:05 +02:00
Maciej Jastrzębski 6cc4c0ca69 chore: release 12.5.2 v12.5.2 2024-07-26 09:39:12 +02:00