問題文
An MUnit test covers a flow that calls an external payment provider, and the pipeline runs where that provider is unreachable. What does the test do about that call?
選択肢
- It removes the call from the flow before the suite starts so that the flow under test runs along a shorter path than in production.
- It substitutes the call with a mock that returns a prepared payload so that the flow under test runs with the provider left out of it.
- It surrounds the call with a spy that records the arguments it received so that the flow under test runs against the provider as usual.
- It redirects the call at a second environment while the suite runs so that the flow under test reaches a copy of the provider.