Maciej Jastrzebski
bc1ec0d065
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
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
9757e5bfbf
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 Jastrzębski
798100bf04
v12.3.1
2023-10-24 18:16:15 +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
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
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
Maciej Jastrzębski
b3136608e6
v12.3.0
2023-09-06 20:59:36 +02:00
Pierre Zimmermann
4148038444
fix: flatlist not rendering in rntl repo ( #1467 )
...
* fix: flatlist not rendering in rntl repo
* refactor: move render tests to RN tests file
---------
Co-authored-by: pierrezimmermann <pierrez@nam.tech >
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2023-08-22 11:24:30 +02:00
Maciej Jastrzebski
4a8072dbe6
feat: add Jest matchers utils ( #1464 )
...
* feat: add formatMessage
* feat: add TS extends
* chore: remove old Jest Native tests
2023-08-20 00:22:58 +02:00
Maciej Jastrzebski
4bfd7fbc6b
feature: Jest matchers core ( #1454 )
...
* chore: jest matchers.
* refactor: cleanup
* chore: test for not exposing matchers by default
* chore: cleanup
* refactor: finishing touches
* chore: improve code cov
* Update package.json
Co-authored-by: Michał Pierzchała <thymikee@gmail.com >
* refactor: code review changes
2023-08-17 10:07:17 +02:00
Maciej Jastrzebski
cae05837a8
chore: Jest snapshot pluging for strip ansi ( #1455 )
2023-08-16 14:11:48 +02:00
Maciej Jastrzębski
316324af1c
v12.2.2
2023-08-14 14:29:53 +02:00
Maciej Jastrzebski
fa7b76a9ef
chore: remove negative "files" entry which confused Yarn ( #1453 )
2023-08-14 14:28:22 +02:00
Maciej Jastrzębski
ee74d84d66
v12.2.1
2023-08-14 13:08:53 +02:00
Maciej Jastrzebski
e69402bc13
chore: React Test Library experiments app ( #1447 )
...
* chore: React Test Library experiments app
* chore: fix lint
* chore: fix tests
2023-08-10 22:15:08 +02:00
Maciej Jastrzebski
dace5cb076
v12.2.0
2023-08-04 12:30:24 +02:00
Maciej Jastrzębski
64b76b0b6b
v12.1.3
2023-07-21 13:15:47 +02:00
Maciej Jastrzebski
5bb5d2db8e
chore: yarn upgrade ( #1433 )
...
* chore: yarn upgrade
* chore: fix yarn.lock
2023-07-17 17:56:03 +02:00
Maciej Jastrzebski
0205955acb
chore: remove conventional-changelog-cli package ( #1419 )
2023-06-14 17:45:18 +02:00
Maciej Jastrzebski
dab444d6dd
feat: User Event core code ( #1405 )
...
* chore: extract user event common parts
* chore: stub press/type implementations
* chore: add sample tests
* refactor: tweaks
* chore: improve test coverage
* chore: more sample tests
* refactor: remove Date.now touch event timestamp
* chore: hide new docs from website
* feat: expose direct access
2023-05-10 10:33:00 +02:00
Maciej Jastrzębski
a29a8c1c9a
v12.1.2
2023-05-04 12:10:36 +02:00
Maciej Jastrzebski
caf515028b
v12.1.1
2023-04-28 18:56:41 +02:00
Maciej Jastrzebski
d5e61ac128
fix: remove incorrect dependencies ( #1399 )
2023-04-28 18:54:23 +02:00
Maciej Jastrzebski
63bc5124a4
v12.1.0
2023-04-28 11:59:40 +02:00
Maciej Jastrzebski
e2073e2a2c
chore: experiments app ( #1391 )
2023-04-25 13:06:42 +02:00
Maciej Jastrzebski
63187c4180
v12.0.1
2023-03-23 10:51:55 +01:00
dependabot[bot]
0783af9e72
chore(deps-dev): bump typescript from 4.9.5 to 5.0.2 ( #1372 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.9.5 to 5.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.5...v5.0.2 )
---
updated-dependencies:
- dependency-name: typescript
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>
2023-03-20 18:03:28 +01:00
renovate[bot]
7628005b7e
fix(deps): update all minor & patch deps ( #1363 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-15 18:57:38 +01:00
Maciej Jastrzebski
f5fc6d4472
v12.0.0
2023-03-15 09:44:52 +01:00
Maciej Jastrzebski
4256d0c83c
v12 release ( #1314 )
...
Co-authored-by: Michał Pierzchała <thymikee@gmail.com >
Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com >
2023-03-15 09:41:38 +01:00
Maciej Jastrzebski
c4d36e4ee3
v11.5.4
2023-03-08 14:56:23 +01:00
Maciej Jastrzebski
45d5cc14a4
v11.5.3
2023-03-07 08:02:23 +01:00
Maciej Jastrzebski
61cefc495d
chore: renovate config ( #1333 )
2023-02-17 10:22:14 +01:00
renovate[bot]
3c48c3e908
chore(deps): update dependency react-native to v0.71.3 ( #1323 )
...
* chore(deps): update dependency react-native to v0.71.3
* chore: remove @ts-expect-errors comments
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2023-02-16 11:50:47 +01:00
Maciej Jastrzębski
1e8b3baa45
v11.5.2
2023-02-08 15:11:37 +01:00
Maciej Jastrzębski
897b7de7f7
v11.5.1
2023-01-26 21:38:56 +00:00
Maciej Jastrzebski
4decd45f5e
fix: force cast await to proper type ( #1293 )
...
* fix: force cast await to proper type
* fix: ci
* refactor: remove support for mock act
* refactor: tweaks
* chore: remove unused test
* chore: fix lint
* refactor: code review changes
2023-01-26 22:28:10 +01:00
dependabot[bot]
4859b84336
chore(deps-dev): bump jest from 29.3.1 to 29.4.0 ( #1292 )
...
* chore(deps-dev): bump jest from 29.3.1 to 29.4.0
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest ) from 29.3.1 to 29.4.0.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.4.0/packages/jest )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* chore: update jest deps
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com >
2023-01-26 16:43:41 +01:00
Patryk Fryda
0af721144f
feat: check accessibilityLabelledBy in *ByLabelText queries ( #1191 )
...
* feat: check accessibilityLabelledBy in *ByLabelText queries
* refactor: move getNodeByText to matchTextContent helper
* test: improve getByLabelText tests
* refactor: extract matchLabelText
* refactor: tweaks
* refactor: code review changes
* refactor: code review changes
* chore: rebase on main
* chore: fix lint
* chore: fix test code in files
* chore: fix lint
* chore: fix ts error due to missing RN typing
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2023-01-23 23:52:24 +01:00
dependabot[bot]
c0406a921e
chore(deps-dev): bump react-native from 0.71.0 to 0.71.1 ( #1288 )
2023-01-22 21:14:39 +00:00
dependabot[bot]
d86d353133
chore(deps-dev): bump react-test-renderer from 18.1.0 to 18.2.0 ( #1281 )
...
Bumps [react-test-renderer](https://github.com/facebook/react/tree/HEAD/packages/react-test-renderer ) from 18.1.0 to 18.2.0.
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v18.2.0/packages/react-test-renderer )
---
updated-dependencies:
- dependency-name: react-test-renderer
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-18 16:53:24 +01:00
dependabot[bot]
25613807b8
chore(deps-dev): bump react and react-native ( #1278 )
...
* chore(deps-dev): bump react and react-native
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react ) and [react-native](https://github.com/facebook/react-native ). These dependencies needed to be updated together.
Updates `react` from 18.1.0 to 18.2.0
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v18.2.0/packages/react )
Updates `react-native` from 0.70.6 to 0.71.0
- [Release notes](https://github.com/facebook/react-native/releases )
- [Changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react-native/compare/v0.70.6...v0.71.0 )
---
updated-dependencies:
- dependency-name: react
dependency-type: direct:development
update-type: version-update:semver-minor
- dependency-name: react-native
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* chore: update snapshots
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com >
2023-01-18 13:16:08 +01:00
Pierre Zimmermann
d261f6100e
feat(breaking): Return host component for all queries ( #1234 )
...
* BREAKING CHANGE : make placeholdertext queries return host elements
* BREAKING CHANGE : make displayValue queries return host elements
* BREAKING CHANGE: make text queries return host elements
* refactor: reset config to default before each test
* feat: use component names from config and add api to configure them
* feat: remove legacy option from queries
* refactor: reorganize legacy and breaking tests for queries
* feat: change error messages for mismatching host component names
* fix: do not update screen when running auto detection
* fix: typo in comment
* refactor: use an object for matchTextContent params
* tests: rewrite some tests to match repo patterns
* fix: use legacy queries by default to prevent breaking changes
* fix: remove wrong uppercase in flow typings
* docs: remove section on useLegacy queries as it wont be a public api
* docs: small improvements based on review
* fix: remove typo in error message
* refactor: rename getReactNativeHostComponentNames to detectHostComponentNames
* refactor: use useBreakingChange from internal config instead of useLegacyQueries
* fix: use fake timers in test so it doesnt take too much time
* refactor: replace type assertions by real type checking
* fix: revert change due to rebase
* fix: improvements after review
* refactor: define type to match inside matchTextContent function
* refactor: rename function to get error message
* feat: display error when auto detect of host component names throw
* fix: remove unused ts-expect-error after ts version bump
* refactor: run auto detection on render if it hasnt been run yet
* refactor: reuse type imports that had been converted to regular ones
* refactor: add comments to distinguish breaking and legacy
* refactor: move config logic into detectComponentHostNames function
* refactor: rename function to detectComponentHostNamesIfNeeded
* tests: add test on detectHostComponentNamesIfNeeded
* fix: use host component name from config for textinput in fireEvent
* refactor: run autodetection in text, displayvalue and placeholder queries rather than in render
* refactor: remove useless async declaration
* refactor: improvements for readability from review
* Update src/__tests__/host-component-names.test.tsx
* refactor: declare variable for host component names in detection function
* refactor: rename detectHostComponentNamesIfNeeded to getHostComponentNames
* feat: use getHostComponentNames in fireEvent for textinput host name
* refactor: revert refactor on matchTextContent
* refactor: add comment to indicate impossible path
* chore: simplify jest-setup files
* refactor: code review changes
Co-authored-by: pierrezimmermann <pierrez@nam.tech >
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com >
2023-01-15 23:13:27 +01:00
Maciej Jastrzebski
71d5040697
chore: update examples to use toBeOnTheScreen() ( #1267 )
2023-01-03 17:52:31 +01:00
Maciej Jastrzebski
63586b13a8
v11.5.0
2022-11-17 13:11:32 +01:00