betaflight-configurator/test/karma.conf.js

27 lines
869 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: [
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/bluebird/js/browser/bluebird.min.js',
2018-05-29 21:53:35 +00:00
'./src/js/serial.js',
'./src/js/data_storage.js',
'./src/js/localization.js',
'./src/js/gui.js',
'./node_modules/jquery-textcomplete/dist/jquery.textcomplete.min.js',
'./src/js/CliAutoComplete.js',
2018-05-29 21:53:35 +00:00
'./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
});
};