And when I run flow I get multiple errors like "Cannot create TouchableOpacity with data-test because data-test is missing in TouchableOpacity". Test itself works ok. I also tried it with testID - no errors then, however in this case for some reason enzyme finds a lot of nodes (this testID is absolutely unique and exists only for one node).
And I get this error: Method “props” is meant to be run on 1 node. 4 found instead.. If I replace testID with data-test or any other name it works fine, except that flow fails.
I am using flow with react-native and my components have data-test properties for test purposes.
And when I run flow I get multiple errors like "Cannot create TouchableOpacity with data-test because data-test is missing in TouchableOpacity". Test itself works ok. I also tried it with testID - no errors then, however in this case for some reason enzyme finds a lot of nodes (this testID is absolutely unique and exists only for one node).
And I get this error:
Method “props” is meant to be run on 1 node. 4 found instead.
. If I replace testID with data-test or any other name it works fine, except that flow fails.