betaflight-configurator/test/karma.conf.js

25 lines
712 B
JavaScript
Raw Normal View History

2018-05-29 21:53:35 +00:00
module.exports = function(config) {
config.set({
2018-06-01 16:46:10 +00:00
basePath: '../',
2018-05-29 21:53:35 +00:00
frameworks: ['mocha', 'chai', 'sinon-chai'],
files: [
'./libraries/jquery-2.1.4.min.js',
'./libraries/bluebird.min.js',
'./src/js/serial.js',
'./src/js/data_storage.js',
'./src/js/localization.js',
'./src/js/gui.js',
'./src/js/tabs/cli.js',
2018-06-01 16:46:10 +00:00
'./test/**/*.js'
2018-05-29 21:53:35 +00:00
],
2018-06-01 16:46:10 +00:00
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
2018-05-29 21:53:35 +00:00
singleRun: true
});
};