🔥 3-day streak
GitHub Copilot96 / 190
Question 96 of 190
A developer asks Copilot Chat to generate unit tests for a `calculateDiscount(price, tier)` function. Copilot produces tests that all pass, but a subsequent mutation testing run reveals that several mutants (e.g., changing `>=` to `>`, or `*0.9` to `*0.8`) survive because no test fails when the logic is altered. What is the most effective way to use Copilot to address this gap?
Reviewed for accuracy · Report an issueNext question