Repository navigation
Replies: 1 comment
|
There are two separate issues in the example. Second, I would avoid asserting pan.config.enabled directly. The object returned by getByGestureTestId should effectively be treated as test infrastructure/opaque gesture data rather than a public configuration-inspection API.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I have been trying to write some tests for my library however the documentation offers no relevant information at all about how to test this library and I feel lost, I'm currently trying to test whether a gesture has been disabled after some particular action.
Assuming we have a code like this one
I need to check if the pan gesture has been disabled after the pinch gesture executed its onStart method, this is what I currently have.
At the moment I'm sure the onStart methods works fine, however when I retrieve the gesture it always returns a value with the value of pan.config.enable set to true when I expect it to be false.
Hope someone can help, thanks.
All reactions