2022-01-14 01:57:29 +00:00
|
|
|
// import settings from default config file
|
|
|
|
let properties = null;
|
2022-02-04 03:12:00 +00:00
|
|
|
const originalConfigFn = require("./karma.conf.js");
|
2022-01-14 01:57:29 +00:00
|
|
|
originalConfigFn({
|
|
|
|
set: function (arg) {
|
|
|
|
properties = arg;
|
|
|
|
},
|
|
|
|
});
|
2022-01-14 01:44:06 +00:00
|
|
|
|
2022-01-14 01:57:29 +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]]"];
|
2022-01-14 01:57:29 +00:00
|
|
|
|
|
|
|
// export settings
|
2022-01-14 01:44:06 +00:00
|
|
|
module.exports = function (config) {
|
2022-01-14 01:57:29 +00:00
|
|
|
config.set(properties);
|
2022-01-14 01:44:06 +00:00
|
|
|
};
|