mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-15 12:25:15 +03:00
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
module.exports = function(config) {
|
|
config.set({
|
|
reporters: ['tfs', 'spec'],
|
|
basePath: '../',
|
|
frameworks: ['mocha', 'chai', 'sinon-chai'],
|
|
files: [
|
|
'./node_modules/jquery/dist/jquery.min.js',
|
|
'./node_modules/jquery-textcomplete/dist/jquery.textcomplete.min.js',
|
|
'./node_modules/bluebird/js/browser/bluebird.min.js',
|
|
'./node_modules/jbox/dist/jBox.min.js',
|
|
'./src/js/serial.js',
|
|
'./src/js/data_storage.js',
|
|
'./src/js/localization.js',
|
|
'./src/js/gui.js',
|
|
'./src/js/CliAutoComplete.js',
|
|
'./src/js/tabs/cli.js',
|
|
'./src/js/phones_ui.js',
|
|
'./test/**/*.js',
|
|
],
|
|
browsers: ['ChromeHeadlessNoSandbox'],
|
|
customLaunchers: {
|
|
ChromeHeadlessNoSandbox: {
|
|
base: 'ChromeHeadless',
|
|
flags: ['--no-sandbox'],
|
|
},
|
|
},
|
|
tfsReporter: {
|
|
outputDir: 'testresults',
|
|
outputFile: 'test_results.xml',
|
|
},
|
|
singleRun: true,
|
|
});
|
|
};
|