gpt4 book ai didi

ios - 在 Jest 每个测试用例中获取警告和 console.error

转载 作者:可可西里 更新时间:2023-11-01 06:01:37 25 4
gpt4 key购买 nike

我正在使用 react native 开发并使用 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}

关于ios - 在 Jest 每个测试用例中获取警告和 console.error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43183329/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com