stryker-mutator / stryker-js

Mutation testing for JavaScript and friends
https://stryker-mutator.io
Apache License 2.0
2.55k stars 242 forks source link

fix(instrumenter): support typescript constructors with code before `super()` #4757

Closed nicojs closed 4 months ago

nicojs commented 4 months ago

Support constructors in TypeScript that have some code before the super() call and have constructor properties or initialized class properties. In such cases, the block statement mutator is not applied.

For more info, see #4744 Fixes #4744