When handling an empty fallthrough case, e.g.:
switch (value) {
case 'A':
case 'B':
...
}
SwitchCase will raise an unchanged (thus unkillable) mutant which simply removes + readds the case 'A' (maybe changing the formatting slightly, but not the semantics).
module.exports = function(config) {
config.set({
mutator: "javascript",
packageManager: "npm",
reporters: ["clear-text", "progress"],
testRunner: "jest",
transpilers: [],
coverageAnalysis: "off",
mutate: ["src/**/*.js"]
});
};
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
| software | version(s)
| ---------------- | -------
| node | multiple
| npm | multiple
| Operating System | multiple
Executable repro repo here.
Thanks for reporting. This is most definitely a bug. It is recently introduced as this is a new mutator. @tommilligan would you mind taking a look? Maybe if you have some time, fixing this issue? Thanks for any feedback you might have.
No problem, will put in a fix this evening. Thanks for letting me know
@nicojs I think it is ready to close
Closing this issue, when you encounter further problems feel free to reopen.
Most helpful comment
No problem, will put in a fix this evening. Thanks for letting me know