You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows you to assert whether the given `TextInput` element has specified display value. It accepts either `string` or `RegExp` matchers, as well as [text match options](Queries.md#text-match-options) of `exact` and `normalizer`.
Copy file name to clipboardExpand all lines: website/docs/MigrationJestMatchers.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: migration-jest-native
3
3
title: Migration from Jest Native matchers
4
4
---
5
5
6
-
This guide describes steps necessary to migrate from [legacy Jest Native matchers](https://github.com/testing-library/jest-native)`v5` to [built-in Jest matchers](jest-matchers).
6
+
This guide describes steps necessary to migrate from [legacy Jest Native matchers v5](https://github.com/testing-library/jest-native) to [built-in Jest matchers](jest-matchers).
7
7
8
8
import TOCInline from '@theme/TOCInline';
9
9
@@ -50,15 +50,12 @@ Following matchers should work the same:
`toHaveAccessibilityValue()` matcher has been renamed to [`toHaveAccessibleValue()`](jest-matchers#tohaveaccessiblevalue) but otherwise should work the same.
61
-
62
59
### Removed matchers
63
60
64
61
`toHaveAccessibilityState()` matcher has been replaced by following matchers:
@@ -70,6 +67,13 @@ Following matchers should work the same:
70
67
71
68
The new matchers support both `accessbililityState` and `aria-*` props.
*[`toBeEnabled()` / `toBeDisabled()`](jest-matchers#tobeenabled) matchers also check the disabled state for element ancestors and not only the element itself
75
79
*[`toBeChecked()`](jest-matchers#tobechecked) matcher supports only elements with `checkbox` or `radio` role
0 commit comments