代码拉取完成,页面将自动刷新
同步操作将从 大漠穷秋/NiceFish 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// NOTE:
// Karma configuration file,
// see https://karma-runner.github.io for more information.
// This file references VWware Clarity UI library,
// see https://github.com/vmware-clarity/ng-clarity for more information.
const isWatch = require('yargs').strict(false).option('watch', { type: 'boolean', default: false }).argv.watch;
const cpusAvailable = require('os').cpus().length;
const executors = isWatch ? 1 : Math.min(cpusAvailable - 1, 8);
const browser = isWatch ? 'Chrome' : 'ChromeHeadless';
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['parallel','jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-parallel'),
require('karma-chrome-launcher'),
require('karma-coverage'),
require('karma-htmlfile-reporter'),
require('karma-mocha-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
parallelOptions: {
executors,
shardStrategy: 'round-robin',
},
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/nice-fish'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
],
check: {
global: {
statements: 80,
branches: 80,
functions: 80,
lines: 80
}
}
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
},
reporters: ['progress','mocha','html'],
htmlReporter: {
outputFile: 'unit-test-report/report.html',
// Optional
pageTitle: '单元测试结果',
subPageTitle: 'nicefish-unit-test',
groupSuites: true,
useCompactStyle: true,
useLegacyStyle: true
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: [browser],
singleRun: true,
restartOnFileChange: true
});
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。