Saving Mock Data

Prev Next

When you run integrated tests (stub = false) with the isSaveMockData flag turned on, the integration tests will save the response from the request into a mock data file and update the action.json file.

  • If you decide to run standalone tests (stub = true), the response that is received will be used as a mock data response for a similar request.
  • Each method makes gathering mock data easier for delivery teams.
  • If you are not using return_raw set to true and if your data is being translated, it is important to understand that what is being saved has already been translated. Therefore, you may need to edit the mock data and reverse the translation.