From Dev.to
Exchange Rate API Unit Testing: Mocks, Fixtures and Contract Tests
Code that depends on live FX is awkward to test. The rate changes every minute, the network may be down in CI, and a test that asserts 0.9215 passes today and fails tomorrow. This guide shows how to t...
