Skip to content

Instantly share code, notes, and snippets.

@zpratt
Created August 23, 2014 14:28
Show Gist options
  • Save zpratt/0ce8c9226529c5dbb137 to your computer and use it in GitHub Desktop.
Save zpratt/0ce8c9226529c5dbb137 to your computer and use it in GitHub Desktop.
Getting started karma configuration.
module.exports = function (config) {
'use strict';
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
files: [
'src/*.js',
'test/*.spec.js'
],
reporters: ['progress'],
port: 9876,
colors: true,
autoWatch: false,
singleRun: false,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
browsers: ['PhantomJS']
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment