Karma reporter with Grunt prints [object Object] instead of describe strings

我是研究僧i 提交于 2019-12-13 05:14:27

问题


With grunt, my failing tests output like so:

Chrome 37.0.2062 (Mac OS X 10.9.5) [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] should return full list if no filter options are set FAILED

When I run the tests without grunt, the describe strings get printed just fine.

Grunt 0.4.5 Karma 0.12.23 Karma-Jasmine 0.2.0 Grunt-Karma 0.9.0


回答1:


Looks like it was a karma-jasmine issue resolved with r0.2.1...

https://github.com/karma-runner/karma-jasmine/issues/46



来源:https://stackoverflow.com/questions/26064460/karma-reporter-with-grunt-prints-object-object-instead-of-describe-strings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!