Karma Test Framework
Karma configuration
// karma.conf.js
module.exports = function (config) {
config.set({
reporters: ['progress', 'junit', 'coverage'],
junitReporter: {
outputDir: 'karma-reports',
outputFile: 'junit.xml',
},
coverageReporter: {
dir: 'karma-reports',
reporters: [
{ type: 'json', subdir: '.', file: 'coverage-final.json' },
],
},
});
};Lifecycle commands
Last updated
Was this helpful?

