Created
May 4, 2016 20:34
-
-
Save amalrik/416e4488f733d6f9ee06d3814c7f7a1f to your computer and use it in GitHub Desktop.
Example configuration for karma-coffee preprocessor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file locate in directory 'test' | |
describe 'test suite', -> | |
it 'should pass', -> | |
expect(true).toEqual(true) | |
it 'should fail', -> | |
expect(true).toEqual(false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(config) { | |
config.set({ | |
frameworks: ['jasmine'], | |
files: [ | |
'test/*.coffee' | |
], | |
preprocessors: { | |
'**/*.coffee': ['coffee'] | |
}, | |
reporters: ['progress'], | |
browsers: ['PhantomJS'], | |
singleRun: true | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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