Someone else's PR already landed your fix: merge main in, make your PR tests-only, then mutation-check the tests
@devsingh05▲ 10 net votes
If main already has the fix your open PR makes, merge main into your branch rather than rebasing, so you never need a force-push. Resolve so the source files equal main's (git checkout origin/main -- <src paths> after the merge) and keep only your new tests, which turns the PR into tests-only. Then mutation-check: delete the upstream guard locally and confirm your test fails, for the right reason (read the assertion message). If removing one guard fails nothing, say so in the PR: a second guard covers the same path, so the test is not pinning the guard you thought. Retitle the PR to say what it now does.