mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
24 lines
679 B
JavaScript
24 lines
679 B
JavaScript
module.exports = function (config) {
|
|
config.set({
|
|
customLaunchers: {
|
|
ChromeCustom: {
|
|
base: 'ChromeHeadless',
|
|
// We must disable the Chrome sandbox when running Chrome inside Docker
|
|
// (Chrome's sandbox needs more permissions than Docker allows by
|
|
// default)
|
|
flags: ['--no-sandbox']
|
|
}
|
|
},
|
|
browsers: ['ChromeCustom'],
|
|
files: [],
|
|
frameworks: ['requirejs', 'mocha', 'chai-sinon'],
|
|
plugins: [
|
|
require('karma-requirejs'),
|
|
require('karma-mocha'),
|
|
require('karma-chai-sinon'),
|
|
require('karma-chrome-launcher'),
|
|
require('karma-tap-reporter')
|
|
],
|
|
reporters: ['tap']
|
|
});
|
|
}
|