Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我browsers: ['PhantomJS'],在测试通过的情况下运行测试,但如果我使用浏览器运行:['Chrome'],那么它说google is not defined我认为是因为它在 karma.conf.js 文件字段中的文件之前加载 Chrome 浏览器。如何在 karma 启动 Chrome 之前加载文件?
browsers: ['PhantomJS'],
google is not defined
不是答案...但是更改为使用IE使其工作...
可能是因为加载比较慢
但是 IE 不会像 Chrome 那样使测试文件夹可见,因此无法在 IE 中调试。