1
0
Fork 0

Updated karma conf

This commit is contained in:
Michaël Lemaire 2019-05-14 00:40:09 +02:00
parent a60ad14c79
commit 29224113c9
2 changed files with 11 additions and 10 deletions

View file

@ -229,7 +229,7 @@ async function serve() {
host: '127.0.0.1', host: '127.0.0.1',
port: 8012, port: 8012,
root: 'out', root: 'out',
ignore: 'coverage', ignore: 'out/coverage',
wait: 500 wait: 500
}); });
await new Promise(() => null); await new Promise(() => null);

View file

@ -1,38 +1,39 @@
// karma.conf.js // karma.conf.js
module.exports = function (config) { module.exports = function (config) {
config.set({ config.set({
basePath: '../..', basePath: '../../out',
frameworks: ['jasmine'], frameworks: ['jasmine'],
singleRun: true, singleRun: true,
browsers: ['ChromeHeadless'], browsers: ['ChromeHeadless'],
colors: true, colors: true,
reporters: ['spec', 'coverage'], reporters: ['spec', 'coverage'],
logLevel: config.LOG_WARN, logLevel: config.LOG_ERROR,
client: { client: {
captureConsole: false captureConsole: false,
}, },
preprocessors: { preprocessors: {
'out/build.js': ['coverage'] 'build.js': ['coverage']
}, },
coverageReporter: { coverageReporter: {
type: 'json', type: 'json',
dir: 'out/coverage/', dir: 'coverage',
subdir: '.', subdir: '.',
file: 'coverage.json' file: 'coverage.json'
}, },
specReporter: { specReporter: {
showSpecTiming: true, showSpecTiming: true,
suppressPassed: true suppressPassed: true,
suppressErrorSummary: true
}, },
files: [ files: [
'out/vendor/phaser/phaser.js', 'vendor/phaser/phaser.js',
'out/vendor/parse/parse.min.js', 'vendor/parse/parse.min.js',
'out/build.js' 'build.js'
] ]
}) })
} }