You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we have to substitute references to react-native modules with corresponding mocks during test, we have used custom webpack config for it: sc-react-native-mocks.webpack.config.js which also required requireJsDomEnv in Test := true.
Apparently, there is a better way to mock modules on Node.js platform, by using:
Since we have to substitute references to
react-native
modules with corresponding mocks duringtest
, we have used customwebpack
config for it:sc-react-native-mocks.webpack.config.js
which also requiredrequireJsDomEnv in Test := true
.Apparently, there is a better way to mock modules on
Node.js
platform, by using:require.extensions[...]
for mocking file resourcesThe text was updated successfully, but these errors were encountered: