google-chrome - 引用错误 : expect is not defined

当在 jasmine 中运行最新的 chrome 版本 76.0.3809.100 karma 单元测试失败并显示错误消息 ReferenceError: expect is not defined
这些单元测试在以前版本的 chrome 中工作得很好。
这些单元测试在 Safari 和 Firefox 上通过。
看起来最新版本的 chrome 中引入了重大更改/新错误。 有没有人也遇到过这个问题?

最佳答案

虽然错误看起来不同,但原因之一可能是 chrome 驱动程序不兼容。请尝试将您的 chromedriver 升级到 76.0.0。

https://stackoverflow.com/questions/57452191/

相关文章:

angular - 从 7.2.15 : minTimeout is greater than ma

python - 如何将 config.py 中的 Python 参数传递给 .sql 文件?

c# - 如何使用 sendgrid 在列表中添加联系人?

vue.js - Vue - 多个可选的路由器参数

reactjs - Heroku:使用不同的环境变量提升静态 react 页面

css - Angular2 查询生成器模块删除按钮布局

reactjs - 如何使用历史更新 react 路由器的分页栏?

azure - Cosmos DB 左连接

ruby-on-rails - Action 电缆检测多个连接/选项卡

spring-boot - Spring boot 2.1.6 上的 spring.metrics.