Flavien (56kode)
56kode.bsky.social
Flavien (56kode)
@56kode.bsky.social
Frontend developer specializing in all things #React, #TS, and #JS
My posts : https://www.56kode.com/
I need to test this.
September 11, 2025 at 9:05 AM
Yeah, thanks. I actually wanted to see the AI work on its own, but I should have added the documentation to the context.
September 10, 2025 at 2:05 PM
Mutation testing helps you find the truth:
Your tests either catch real issues — or they don't.
It’s not something to run on every push.
But from time to time? It’s eye-opening 👀
May 14, 2025 at 3:16 PM
So when should you use it?
🧹 When cleaning up a legacy project
🧠 When improving test quality
🚨 When you think your code is well tested — but want proof
May 14, 2025 at 3:16 PM
But be warned ⚠️
Mutation testing is slow.
🔁 It can multiply test time by 10x or more
🧱 It may require config tweaks to work with your test setup
🐢 In CI, it can make feedback loops way longer
May 14, 2025 at 3:16 PM
That’s the magic of mutation testing:
✅ It doesn’t just check if your code is covered
✅ It checks if your tests are actually useful
And that’s a huge difference.
May 14, 2025 at 3:16 PM
Let’s say you wrote this:

return a > b;

Mutation testing might change it to:

return a < b;

If your tests still pass... do they really check the logic? 🤔
May 14, 2025 at 3:16 PM
💥 Mutation testing works like this:
- The tool (like Stryker) changes your code on purpose
- It runs your test suite
- If tests fail → good!
- If tests pass → bad sign: the mutation slipped through
May 14, 2025 at 3:16 PM