mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
ea2c7040ab
- Add feature https://github.com/chaijs/chai/issues/675 - Fix bug https://github.com/chaijs/chai/issues/648 - Allow object overload of global.err's second argument - Combine global.err and window.err into one file and function - Add tests for global.err
28 lines
618 B
JavaScript
28 lines
618 B
JavaScript
module.exports = function(config) {
|
|
config.set({
|
|
frameworks: [ 'mocha' ]
|
|
, files: [
|
|
'chai.js'
|
|
, 'test/bootstrap/index.js'
|
|
, 'test/*.js'
|
|
]
|
|
, reporters: [ 'progress' ]
|
|
, colors: true
|
|
, logLevel: config.LOG_INFO
|
|
, autoWatch: false
|
|
, browsers: [ 'PhantomJS' ]
|
|
, browserDisconnectTimeout: 10000
|
|
, browserDisconnectTolerance: 2
|
|
, browserNoActivityTimeout: 20000
|
|
, singleRun: true
|
|
});
|
|
|
|
switch (process.env.CHAI_TEST_ENV) {
|
|
case 'sauce':
|
|
require('./karma.sauce')(config);
|
|
break;
|
|
default:
|
|
// ...
|
|
break;
|
|
};
|
|
};
|