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