
Testing is an important task of our daily work. For the client JavaScript tests we use the karma test runner. It runs all the test in a real browser. The results are logged in the console. There are some reporters included, but we would like to have a more ‘fancy’ one. Thanks to the plugin architecture of karma it is an easy task to create a new reporter.
So how does it look like

Install
$ npm install karma-mocha-reporter
Usage
So the configuration is really simple. It is all done in the karma config file. You just add 'mocha'
to the reporters array and 'karma-mocha-reporter'
to the plugins array. Here is a sample karma config file.
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
// reporters configuration
reporters: ['mocha'],
plugins: [
'karma-jasmine',
'karma-mocha-reporter'
]
});
};
Online Casino Review (2021) | CasinoGamesRadar
AntwortenLöschenPlaytech is an Australian-based game software provider with offices in the gambling 온카지노 industry in Australia, New Zealand 카지노 and South Africa. bet365 Read our review and start playing now!