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;
2022-02-04 03:12:00 +00:00
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
2022-02-04 03:12:00 +00:00
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
};