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
Maciej Jastrzebski
3be9f3b7b9
chore: disable React 17 tests on CI as they didn't work anyway ( #1504 )
2023-10-12 12:10:30 +02:00
Maciej Jastrzebski
32dca59612
chore: yarn upgrade ( #1512 )
2023-10-12 12:09:09 +02:00
Wiktor Sieprawski
a9f32a69e4
feat: toBeExpanded matcher ( #1497 )
...
* feat: toBeExpanded matcher
* feat: toBeCollapsed matcher
* chore: shorten syntax for isElementCollapsed check
* refactor: clean up
---------
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2023-09-19 12:38:49 +02:00
Wiktor Sieprawski
d898a9d288
feat: toContainElement matcher ( #1495 )
...
* feat: add toContainElement matcher
* chore: replace printElement with formatElement
* chore: mimic jest-dom instead of jest-native
* fix: checking host element
* test: passing null as argument
* chore: rename basic test case
* test: negative case
* test: on null elements
* fix: validating host container and element
* refactor: code review changes
* refactor: tweaks
* refactors: cleanup
---------
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2023-09-19 11:36:29 +02: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
Maciej Jastrzebski
7a12847e72
chore: restore latest types for react-test-renderer ( #1501 )
2023-09-18 21:54:33 +02:00
Maciej Jastrzebski
08e4d022b3
chore: update deps 2023-09-18 ( #1499 )
...
* chore: upgrade example/basic deps
* chore: update some deps
* chore: upgrade other deps
* chore: fix lint
* chore: yarn upgrade (partial)
* chore: yarn upgrade (partial 2)
* chore: yarn upgrade (partial)
* chore: yarn upgrade (partial)
* chore: yarn upgrade (partial)
* chore: yarn upgrade react-native
* chore: upgrade rest (ex react-test-renderer)
2023-09-18 13:06:12 +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
Marcin Kornek
3b9c4da433
feat: toHaveStyle matcher ( #1487 )
...
* feat: implement toHaveStyle with tests
* refactor: tweaks and cleanup
---------
Co-authored-by: Marcin Kornek <7931279+marcinkornek@users.noreply.github.com >
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2023-09-12 12:04:17 +02:00
Hugo Duprat
701433c131
feat: toBeBusy() matcher ( #1493 )
...
* feat: create always passing toBeBusy() matcher
* test: prepare toBeBusy() tests
* feat: implement toBeBusy() passing condition
* feat: implement error message
* test: update error message snapshots to correct format
* refactor: use screen variable
* refactor: tweaks
* refactor: cleanup
* refactor: clean up
* refactor: finishing touches
---------
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com >
2023-09-12 11:13:31 +02:00
AntoineThibi
1592d35e36
feat: implement toBeSelected matcher ( #1488 )
...
* feat: implement toBeSelected
* refactor: tweaks
* refactor: tweak tests
* refactor: finishing touches
---------
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com >
2023-09-08 11:23:19 +02:00
Maciej Jastrzebski
8373d6a99b
chore: add accessibility experiments ( #1489 )
2023-09-07 10:07:13 +02:00
Maciej Jastrzębski
b3136608e6
v12.3.0
v12.3.0
2023-09-06 20:59:36 +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