mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
929c109e1a
* chore: Removed phantomjs dependency Added support for chrome headless Signed-off-by: ossdev07 <ossdev@puresoftware.com> * Update karma.conf.js * Update Makefile
34 lines
749 B
JavaScript
34 lines
749 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: [ 'HeadlessChrome' ]
|
|
, customLaunchers: {
|
|
HeadlessChrome: {
|
|
base: 'ChromeHeadless'
|
|
, flags: [ '--no-sandbox',]
|
|
, }
|
|
, }
|
|
, browserDisconnectTimeout: 10000
|
|
, browserDisconnectTolerance: 2
|
|
, browserNoActivityTimeout: 20000
|
|
, singleRun: true
|
|
});
|
|
|
|
switch (process.env.CHAI_TEST_ENV) {
|
|
case 'sauce':
|
|
require('./karma.sauce')(config);
|
|
break;
|
|
default:
|
|
// ...
|
|
break;
|
|
};
|
|
};
|