Skip to content

Instantly share code, notes, and snippets.

View iurii-kondratiuk-zz's full-sized avatar

Iurii Kondratiuk iurii-kondratiuk-zz

View GitHub Profile
@iurii-kondratiuk-zz
iurii-kondratiuk-zz / karma.conf.js
Last active August 29, 2015 14:25
Testing Angular application with CoffeeScript, Jasmine and Karma
module.exports = function (config) {
var preprocessors = {
'coffee/**/*.coffee': ['coffee'],
'spec/**/*.coffee': ['coffee'],
'www/views/**/*.html': ['ng-html2js']
};
// when we run coverage report we can't use `coffee` preprocessor,
// so we change preprocessor depending on reporters
if(process.argv[6] === 'progress,coverage') {