gpt4 book ai didi

react-native - 开 Jest : Test suite failed to run, TypeError:无法读取未定义的属性 'bind'

转载 作者:行者123 更新时间:2023-12-04 05:04:23 25 4
gpt4 key购买 nike

我们在React-native中使用来自单元测试的笑话。运行良好。
我们只是删除了npm并重新安装了它,然后当我们尝试运行单元测试(npm test)时,出现以下错误,并且我们无法运行测试用例。

enter image description here

可能出了什么问题。

最佳答案

将jest-cli版本从18升级到19可以解决此问题。

Issue in github repo of jest

关于react-native - 开 Jest : Test suite failed to run, TypeError:无法读取未定义的属性 'bind',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42692575/

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