小编Mat*_*K14的帖子

发布APK不使用JavaScript代码更新

JavaScript当我生成第一个签名的APK时,我的Android APK正在运行.我已尝试在Android Studio中清理/重建项目,我./gradlew cleanandroid子文件夹中尝试过.关于为什么代码没有更新的任何想法?我见过这个问题,对自己没有任何成功.

android react-native

18
推荐指数
2
解决办法
1万
查看次数

测试套件无法运行TypeError:无法读取未定义的属性"default"

我正在尝试在我的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)

javascript unit-testing reactjs jestjs react-native

14
推荐指数
3
解决办法
7079
查看次数