js-waku/karma-live-data.conf.js

17 lines
402 B
JavaScript
Raw Normal View History

// import settings from default config file
let properties = null;
const originalConfigFn = require('./karma.conf.js');
originalConfigFn({
set: function (arg) {
properties = arg;
},
});
2022-01-14 01:44:06 +00:00
// pass `--grep '[live data]'` to mocha to only run live data tests
properties.client.args = ['--grep', '[live data]]'];
// export settings
2022-01-14 01:44:06 +00:00
module.exports = function (config) {
config.set(properties);
2022-01-14 01:44:06 +00:00
};