title: Cypress: intercept and modify part of the response
body: <p>Based on Cypress <a href="https://docs.cypress.io/api/commands/intercept#Intercepting-a-request" rel="nofollow noreferrer">docs</a>, I want to modify a field on the response and leave everything else unchanged, after first loading the fixture. I know I could easily do this with 2 fixtures but I would not like to duplicate it for a simple field change. I tried variations of the following code but to no success. Any ideas?</p>
  <pre><code>  it('Should have the correct values in monthly', () =&gt; {
      cy.intercept('POST', `**/full`, (req) =&gt; {
        req.continue(res =&gt; {
          res.body.data.monthly = 5000;
          res.send(res);
        })
      });
      cy.fixture('calculator/monthlyRepayment.json').as('fixtures:monthlyRepayment');
      cy.route('POST', `**/full`, '@fixtures:monthlyRepayment').as(`request:fullData`);
  
      cy.get('[data-test=&quot;calculator:monthlyRepayment&quot;]').should('contain', '$5000.00');
  })
  </code></pre>