title: How to update a fixture file in Cypress
body: <p>I have a fixture file in cypress which has json data within it</p>
  <p>I want to be able to update the fields in this fixture file when I run the test script</p>
  <p>For example the fixture file would read</p>
  <pre><code> {
    table: [
      {
        name: 'Joe',
        number: 1,
      },
      {
        name: 'Bob',
        number: 2,
      },
    ],
  };
  </code></pre>
  <p>And I want to update the number fields to 3 and 4</p>
  <p>I have tried</p>
  <pre><code>cy.fixture('dataFile.json')
    .as('data')
    .then((data) =&gt; {
      data.table[0].number = 3;
      data.table[1].number = 4;
    });
  </code></pre>
  <p>but it is not working
  when I run the test i am still seeing everything behave as if the number fields are still 1 and 2.
  If I print the fields to the console i can see they are actually updated but cypress is still running with the original data</p>
  <p>I am still new to both cypress and javascript.
  How can I get around this?</p>