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(mocha-runner): compatibility with Mocha v10.5.1 and up #4885

Open ericcornelissen opened 4 days ago

ericcornelissen commented 4 days ago

Fixes #4883

Update the mocha-adapter.ts of the mocha-runner to be compatible with v10.5.1 of Mocha. To preserve compatibility with earlier versions of Mocha, a runtime check for the return value of the affected Mocha API is added.