JavaScript当我生成第一个签名的APK时,我的Android APK正在运行.我已尝试在Android Studio中清理/重建项目,我./gradlew clean在android子文件夹中尝试过.关于为什么代码没有更新的任何想法?我见过这个问题,对自己没有任何成功.
我正在尝试在我的react-native项目上设置Jest,但它并没有与bugsnag-react-native打得很好.
使用我当前的测试配置,我看到与bugsnag leaveBreadcrumb功能相关的错误如下所示:
FAIL app/__tests__/NetworkReducer.test.js
? Test suite failed to run
TypeError: Cannot read property 'default' of undefined
at Object.<anonymous> (app/__tests__/NetworkReducer.test.js:10:20)
at Generator.next (<anonymous>)
at Promise (<anonymous>)
Run Code Online (Sandbox Code Playgroud)
我有一个实例化bugsnag的帮助文件:
helpers/bugSnag.js
//-------------------------------------------------------------------------------------------------
// Create a single instance of the bugsnag client so we don't have to duplicate our configuration
// anywhere.
//-------------------------------------------------------------------------------------------------
// https://docs.bugsnag.com/platforms/react-native/#basic-configuration
import { Client, Configuration } from 'bugsnag-react-native';
const config = new Configuration();
config.consoleBreadcrumbsEnabled = true;
config.notifyReleaseStages = ['testflight', 'production'];
const bugSnag = new Client(config);
export …Run Code Online (Sandbox Code Playgroud)