chai/karma.conf.js
2013-09-17 22:13:12 -04:00

29 lines
595 B
JavaScript

module.exports = function(config) {
config.set({
basePath: ''
, frameworks: [ 'mocha' ]
, files: [
'build/build.js'
, 'test/bootstrap/karma.js'
, 'test/*.js'
]
, exclude: []
, reporters: [ 'progress' ]
, port: 9876
, colors: true
, logLevel: config.LOG_INFO
, autoWatch: false
, browsers: [ 'PhantomJS' ]
, captureTimeout: 60000
, singleRun: true
});
switch (process.env.CHAI_TEST_ENV) {
case 'sauce':
require('./karma.sauce')(config);
break;
default:
// ...
break;
};
};