Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add arrow function property mutator #2176

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.

Sorry, something went wrong.

@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.

None yet

2 participants