How can I test react-native component with mocha + enzyme + chai when it's wrapped in a Provider component
问题 I'm using mocha, enzyme, chai and some mocking libraries to make the testing possible. So, the content of TestComponent.js is below, I configure the store and pass it to the provider, while DeskScreen is connected component: import mockery from "mockery"; import 'babel-polyfill'; import reactNativeSvgMock from "react-native-svg-mock"; mockery.enable(); mockery.registerMock("react-native-svg", reactNativeSvgMock); var DeskScreen = require( '../app/containers/DeskScreen/DeskScreen'); import