Skip to content

Instantly share code, notes, and snippets.

@amalrik
Created May 4, 2016 20:34
Show Gist options
  • Save amalrik/416e4488f733d6f9ee06d3814c7f7a1f to your computer and use it in GitHub Desktop.
Save amalrik/416e4488f733d6f9ee06d3814c7f7a1f to your computer and use it in GitHub Desktop.
Example configuration for karma-coffee preprocessor.
// This file locate in directory 'test'
describe 'test suite', ->
it 'should pass', ->
expect(true).toEqual(true)
it 'should fail', ->
expect(true).toEqual(false)
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
files: [
'test/*.coffee'
],
preprocessors: {
'**/*.coffee': ['coffee']
},
reporters: ['progress'],
browsers: ['PhantomJS'],
singleRun: true
});
};
{
"name": "karma-coffee",
"version": "0.0.0",
"dependencies": {
"karma-coffee-preprocessor": "~0.1.0",
"karma-jasmine": "~0.1.3",
"karma-phantomjs-launcher": "~0.1.0",
"karma": "~0.10.2"
},
"scripts": {
"test": "karma start"
},
"devDependencies": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment