当在 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/