admin管理员组文章数量:1336321
I get the error:
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevMenu' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["SourceCode","PlatformConstants","DevSettings","BlobModule","Networking"],"TurboModules":[],"NotFound":["LogBox","DevMenu"]}
1 | import Reactotron from 'reactotron-react-native'; | ^ 2 | import { reactotronRedux } from 'reactotron-redux';
I am using reactotron in my redux store:
export const store = configureStore({
reducer: persistedReducer,
enhancers: __DEV__ ? [Reactotron?.createEnhancer()] : [],
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: {
/* ignore persistance actions */
ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
},
}).concat(sagaMiddleware),
});
Reactotron config:
import Reactotron from 'reactotron-react-native';
import { reactotronRedux } from 'reactotron-redux';
const reactotron = Reactotron.configure({
name: 'myRAC',
})
.useReactNative({
networking: {
ignoreUrls:
/symbolicate|https:\/\/images\.contentstack\.io\/v3\/a|https:\/\/www\.google\\//,
},
})
.use(reactotronRedux())
.connect();
export default reactotron;
In my jest config:
globals: {
__DEV__: true,
},
本文标签: reduxJest tests failing when using reactotron and DEVStack Overflow
版权声明:本文标题:redux - Jest tests failing when using reactotron and __DEV__ - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742356446a2459509.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论