mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 15:19:02 +00:00
Add karma config
This commit is contained in:
parent
289500082a
commit
d37b238c9e
1 changed files with 24 additions and 0 deletions
24
services/web/karma.conf.js
Normal file
24
services/web/karma.conf.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
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']
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue