🔥 3-day streak
GitHub Copilot83 / 190
Question 83 of 190

A developer is writing a unit test for a service method that calls an external payment gateway over HTTPS. They want Copilot Chat to help isolate the unit under test so the test does not make real network calls, runs deterministically, and can simulate both a successful charge and a gateway timeout. What is the most effective way to prompt Copilot for this test?

Reviewed for accuracy · Report an issueNext question