-
Notifications
You must be signed in to change notification settings - Fork 45
Closed as not planned
Description
react-nativeorexpo: 0.62.1@testing-library/react-nativeversion: 3.1.0react-nativeversion: 0.62.1nodeversion: 12.16.1
Latest version of RN deprecated accessibilityStates in favor of accessibilityState
https://reactnative.dev/blog/2020/03/26/version-0.62#breaking-changes
Seems like now it's an object
facebook/react-native@7b35f42
I suspect we need to change it here
jest-native/src/to-be-disabled.js
Line 28 in 77ca440
| path(['props', 'accessibilityStates']), |
It's quite weird that in my codebase everything works fine except 1 use case where I have something like this
<TouchableOpacity disabled testID="button">
<Button disabled>And when I check it fails, no matter if the received output from jest seems to be correct and it has the disabled prop and it's true
{
"disabled": true,
"testID": "button",
"children": <Button>
}
Can you help us fix this issue by submitting a pull request?
I checked the codebase and there is an intense use of ramda which hurts my eyes and find it quite difficult to work with, but I'll try to make a PR 😄
Brianop, andyesp, mdjastrzebski and sciamp
Metadata
Metadata
Assignees
Labels
No labels