Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在jest中的每个测试用例中获取警告和console.error_Ios_Reactjs_React Native_Jestjs - Fatal编程技术网

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

Ios 在jest中的每个测试用例中获取警告和console.error,ios,reactjs,react-native,jestjs,Ios,Reactjs,React Native,Jestjs,我使用react原生开发和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/reac

我使用react原生开发和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
试试这个 enableEmptySections={true}