ng 测试在使用 firefox 浏览器时出现错误
ng test is giving error with firefox browser
运行 ng 测试时出现以下错误,(添加了 Karama.conf.js 的 Firefox 浏览器)
无法加载浏览器"Firefox":它没有注册!也许您缺少一些插件?
检查您的 karma 配置文件以查看列出的 firefox 插件,
插件:[
'karma-junit-reporter',
'karma-chrome-launcher',
'karma-firefox-launcher'
],
添加以下依赖项可解决问题:
plugins: [
require('core-js/es6/promise'),
require('karma-jasmine'),
require('karma-ie-launcher'),
require('karma-chrome-launcher'),
require('karma-firefox-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
'karma-spec-reporter'
],
运行 ng 测试时出现以下错误,(添加了 Karama.conf.js 的 Firefox 浏览器) 无法加载浏览器"Firefox":它没有注册!也许您缺少一些插件?
检查您的 karma 配置文件以查看列出的 firefox 插件,
插件:[ 'karma-junit-reporter', 'karma-chrome-launcher', 'karma-firefox-launcher' ],
添加以下依赖项可解决问题:
plugins: [
require('core-js/es6/promise'),
require('karma-jasmine'),
require('karma-ie-launcher'),
require('karma-chrome-launcher'),
require('karma-firefox-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
'karma-spec-reporter'
],