message: [jest-config] simplify filter-reduce
diff: @@ -14,9 +14,12 @@ export default function setFromArgv(
  options: Config.InitialOptions,
  argv: Config.Argv,
  ): Config.InitialOptions {
  - const argvToOptions = Object.keys(argv)
  - .filter(key => argv[key] !== undefined && specialArgs.indexOf(key) === -1)
  - .reduce((options: Record<string, unknown>, key) => {
  + const argvToOptions = Object.keys(argv).reduce(
  + (options: Record<string, unknown>, key) => {
  + if (argv[key] === undefined || specialArgs.includes(key)) {
  + return options;
  + }
  +
  switch (key) {
  case 'coverage':
  options.collectCoverage = argv[key];
  @@ -48,7 +51,9 @@ export default function setFromArgv(
  options[key] = argv[key];
  }
  return options;
  - }, {});
  + },
  + {},
  + );
  return {
  ...options,
  