Phantomjs在新文件上失败

Phantomjs在新文件上失败,phantomjs,karma-jasmine,Phantomjs,Karma Jasmine,当我尝试在angular2应用程序中使用phantomjs运行karma测试时 我得到这个错误。当我使用chrome作为karams浏览器时,它可以工作 TypeError: FileConstructor is not a constructor (evaluating 'new File(["file"], "filename")') (line 35) 通过使用无头chrome代替phantomjs解决了这个问题通过使用无头chrome代替phantomjs解决了这个问题

当我尝试在angular2应用程序中使用phantomjs运行karma测试时 我得到这个错误。当我使用chrome作为karams浏览器时,它可以工作

TypeError: FileConstructor is not a constructor (evaluating 'new File(["file"], "filename")') (line 35)

通过使用无头chrome代替phantomjs解决了这个问题通过使用无头chrome代替phantomjs解决了这个问题