svgcanvas/karma.conf.js

27 lines
753 B
JavaScript
Raw Permalink Normal View History

2022-03-09 21:50:14 +08:00
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function(config) {
config.set({
basePath: '',
2022-03-09 21:50:14 +08:00
frameworks: ['mocha'],
files: [
2022-03-09 21:50:14 +08:00
'dist/rendering.test.js',
],
preprocessors: {
2022-03-09 21:50:14 +08:00
'**/*.js': ['sourcemap']
},
reporters: ['progress', 'coverage', 'mocha'],
coverageReporter: {
type: 'lcovonly',
dir : 'coverage/',
subdir: '.',
file: 'lcov.info'
},
port: 9876,
colors: true,
2022-03-09 21:50:14 +08:00
logLevel: config.LOG_INFO,
autoWatch: false,
2022-03-09 21:50:14 +08:00
browsers: ['ChromeHeadless'],
singleRun: true // output all logs to stdout instead of click debug button
});
};