mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
29 lines
595 B
JavaScript
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;
|
|
};
|
|
};
|