Skip to content

Instantly share code, notes, and snippets.

@adamrights
Forked from jackmahoney/karma.conf.js
Last active August 29, 2015 14:08
Show Gist options
  • Save adamrights/cfccdd21ffa4638033f3 to your computer and use it in GitHub Desktop.
Save adamrights/cfccdd21ffa4638033f3 to your computer and use it in GitHub Desktop.
module.exports = function(config) {
config.set({
frameworks: ['browserify', 'mocha', 'chai'],
//specify browserify preproccesor so we can use server-side components
preprocessors: {
'test/*' : ['browserify']
},
//configure browserify preprocessor to use reactify to parse JSX
browserify: {
debug: true,
transform: ['reactify']
},
// list of files / patterns to load in the browser
files: [
'test/*.shim.js',
'test/*.jsx'
],
browsers: ['PhantomJS'],
singleRun: false,
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment