Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Karma conf for react testing
module.exports = function(config) {
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: [
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
You can’t perform that action at this time.