Ios 在jest中的每个测试用例中获取警告和console.error
我使用react原生开发和jest进行测试。我的案例都是通过测试的案例,但都有这个错误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
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}