im having bit of issue after upgrading react native 0.30. using mocha, , babel transpile react native source before test run. i'm seeing issues modules cannot found.
here's example:
error: cannot find module 'assetregistry'
the corresponding file can found here https://github.com/facebook/react-native/blob/master/libraries/image/assetsourceresolver.js#l21. looks if babel cannot locate assetregistry file local in directory.
ok turns out react-native-maps calling internal react-native library. react-native-mock has of internals mocked react native internal library image utility not mocked.
i used mockery mock library , seems work now.
Comments
Post a Comment