This fixes an issue with the implementation of `removeArg()` whereby
calling `removeArg(args, "config")` removed argument "--config-file" if
provided
This commit fixes this by ensuring that calling `removeArg(args, "config")`
removes `--config` without removing `--config-file`.
* fix(e2e-cypress): make —headless work with —browser chrome
fix#5103
* fix: increase cypress minimum version to 3.8
this version onwards supports using --browser chrome --headless
It has become a common source of mistakes.
For example, during PR #4363 I've referred to the wrong `options`
several times due to the variable shadowing.
BREAKING CHANGE: `cli-plugin-unit-jest` and `cli-plugin-unit-mocha` now register
"test:unit" command and script instead of "test"; `cli-plugin-e2e-cypress` now
register "test:e2e" with optional `--headless` flag instead of "e2e" and
"e2e:open"; `cli-plugin-e2e-nightwatch` now register "test:e2e" instead of "e2e".
close#876, close#878
BREAKING CHANGE: PluginAPI.setMode() has been removed. Instead, for a plugin to
sepcify the default mode for a registered command, the plugins should expose
`module.exports.defaultModes` in the form of `{ [commandName]: mode }`.
close#959