Skip to content

Commit

Permalink
blacklist configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schmidt committed Feb 7, 2019
1 parent 5a28f11 commit a0582e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detox/local-cli/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ module.exports.handler = function main(program) {
}
}

const blacklistedArgs = ['configurations', '$0']
function collectExtraArgs() {
const aliasKeys = Object.values(module.exports.builder).reduce(
(carry, item) => [].concat(carry, typeof item.alias === 'string' ? [item.alias] : item.alias),
[]
);

const knownKeys = [].concat(Object.keys(module.exports.builder), aliasKeys);
const knownKeys = [].concat(Object.keys(module.exports.builder), aliasKeys, blacklistedArgs);

const clone = Object.assign({}, program);
knownKeys.forEach(key => delete clone[key]);
Expand Down

0 comments on commit a0582e3

Please sign in to comment.