A Karma plugin. Compile CSON files into JSON.
npm install karma-cson-preprocessor --save-dev
// karma.conf.js
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.cson': ['cson', 'html2js']
},
files: [
'**/*.js',
'**/*.json',
]
});
};
I used karma-slim-preprocessor as a model for this code.