/* eslint-env node */
module.exports = function ( config ) {
	config.set( {
		frameworks: [ 'qunit' ],
		files: [
			'node_modules/jquery/dist/jquery.js',
			'jquery.client.js',
			'test/jquery.client.test.js'
		],
		preprocessors: {
			'*.js': [ 'coverage' ]
		},
		reporters: [ 'dots', 'coverage' ],
		coverageReporter: { reporters: [
			{ type: 'html', dir: 'coverage/' },
			{ type: 'text-summary', dir: 'coverage/' }
		] },
		browsers: [ 'FirefoxHeadless' ],
		singleRun: true,
		autoWatch: false
	} );
};

/* eslint-env node */
module.exports = function ( config ) {
	config.set( {
		frameworks: [ 'qunit' ],
		files: [
			'node_modules/jquery/dist/jquery.js',
			'jquery.client.js',
			'test/jquery.client.test.js'
		],
		preprocessors: {
			'*.js': [ 'coverage' ]
		},
		reporters: [ 'dots', 'coverage' ],
		coverageReporter: {
			dir: 'coverage/',
			subdir: '.',
			reporters: [
				{ type: 'html' },
				{ type: 'text-summary' },
				{ type: 'clover' }
			]
		},
		browsers: [ 'FirefoxHeadless' ],
		singleRun: true,
		autoWatch: false
	} );
};

Add clover.xml to coverage output
build: Add clover.xml to coverage output

This is needed for the coverage percentage to show up
on <https://doc.wikimedia.org/cover/>.

Change-Id: Ie1424e53548220224a589c41c9f3d3848e672406
