Closed mateoguzmana closed 1 month ago
As also mentioned in https://github.com/react-native-menu/menu/issues/817, having a testID is quite useful for unit testing and automation purposes. This PR addresses that
testID
Additionally, I spent some time trying mock the MenuView behaviour and couldn't find any example around. I'm adding an example here as it's a common use case and would be very useful for future users of this library.
MenuView
Fixes #817
Run: yarn typescript && yarn prepare
yarn typescript
yarn prepare
Overview
As also mentioned in https://github.com/react-native-menu/menu/issues/817, having a
testID
is quite useful for unit testing and automation purposes. This PR addresses thatAdditionally, I spent some time trying mock the
MenuView
behaviour and couldn't find any example around. I'm adding an example here as it's a common use case and would be very useful for future users of this library.Fixes #817
Test Plan
Run:
yarn typescript
&&yarn prepare