Code coverage can lie


Code coverage can lie. 100% coverage doesn’t mean all code is covered.

One solution: Mutation testing.

Mutation testing changes the code to assure a test fails when the code changes.

So, mutation testing tests... the tests! 👍

In JS? Try Stryker.

https://stryker-mutator.io/

View original on X