Skip to content

Instantly share code, notes, and snippets.

@bradharms
Created January 1, 2016 23:29
Show Gist options
  • Save bradharms/16f60fb1e03092d67da1 to your computer and use it in GitHub Desktop.
Save bradharms/16f60fb1e03092d67da1 to your computer and use it in GitHub Desktop.
const PWD = process.cwd();
const BASEDIR = `${PWD}/spec`;
module.exports = config => config.set({
logLevel: config.LOG_INFO,
frameworks: ['browserify', 'jasmine'],
files: [`${BASEDIR}/stuff.karma.js`],
// files: [`${BASEDIR}/**/+([^.]|*.karma).js`],
browsers: ['PhantomJS'],
singleRun: true,
preprocessors: {
[`${BASEDIR}/stuff.karma.js`]: ['browserify'],
// [`${BASEDIR}/**/*.js`]: ['browserify'],
},
browserify: {
debug: true,
transform: ['babelify'],
extensions: ['.js', '.json', '.jsx'],
},
watchify: {
poll: true,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment