Karma can't capture PhantomJS

前端 未结 2 584
梦毁少年i
梦毁少年i 2021-01-12 03:37

We\'ve set up a Jenkins CI server running Karma targeting PhantomJS. We\'re running our tests through Grunt. Jenkins, Grunt, and Phantom are all running correctly, and Karma

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 03:53

    In my case adding

    transports: ['xhr-polling', 'jsonp-polling']
    

    to karma.conf.js was sufficient. The real problem was a very old version of karma (0.12). Now with 1.4. I don't need CPU consuming polling.

提交回复
热议问题