Using a mock instead of hitting a 3rd party API like Postgres or Stripe can often be necessary when writing tests. A problem I've seen is when the API can unknowingly diverges from the data the mocks return. How can I maintain the contract between test data and real APIs? This is a Javascript project.
Strategies to maintain contract between mocks and APIs
javascript;testing