在每个测试用例中以jest获取警告和console.error

时间:2017-04-03 11:21:08

标签: ios reactjs react-native jestjs

我正在使用反应原生开发并使用jest进行测试。和我的情况我的所有都是测试用例通过,但收到此错误。

console.error node_modules/react-native/Libraries/Core/ExceptionsManager.js:71

          Warning: Invalid argument supplied to oneOf, expected an instance of array.

        console.error node_modules/react-native/Libraries/Core/ExceptionsManager.js:71

          Warning: In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers.

        console.error node_modules/react-native/Libraries/Core/ExceptionsManager.js:71

          Warning: In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers

    in my all test cases

1 个答案:

答案 0 :(得分:1)

试试这个 enableEmptySections = {TRUE}