代码拉取完成,页面将自动刷新
// Karma configuration
'use strict'
const karmaConfig = require('./karma.common.conf.js')
const browsers = {
IE: {}
}
module.exports = (config) => {
config.set({
...karmaConfig,
files: [
'spec/utils/polyfill.js',
'dist/jspdf.debug.js',
'node_modules/canvg/dist/browser/canvg.js',
'node_modules/html2canvas/dist/html2canvas.js',
'spec/utils/compare.js',
{
pattern: 'spec/**/*.spec.js',
included: true
},
{
pattern: 'spec/**/reference/*.*',
included: false,
served: true
}
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'dist/jspdf.debug.js': 'coverage',
'spec/!(acroform|unicode)*/*.js': 'babel'
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['mocha', 'coverage'],
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests wheneve r any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: Object.keys(browsers),
})
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。