Skip to content

Conversation

brody4hire
Copy link

Similar to my proposal in #2175 - mutate arrow function properties, for example:

  • ({ bar }) => baz --> ({}) => baz
  • ({ bar, baz = "qux" }) => baz -->
    • ({ baz = "qux" }) => baz
    • ({ bar }) => baz

This proposal could have automatically discovered the following opportunities for cleanup fixes:

I have only made this on the JavaScript mutator, would be happy to look into the TypeScript version if there is interest in this proposal.

Some TODO items in case of interest in this proposal:

  • ensure the CI build is green
  • consider looking for a more succinct name
  • consider if and how this could potentially overlap with other mutations and what we can do
  • add implementation for TypeScript mutator
  • update Stryker Handbook

I do think this proposal should be merged in a squash commit, if accepted.

@simondel
Copy link
Member

See #2172

@simondel simondel closed this May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants