How to force cy.writeFile() before cy.intercept()
I want to update the time in my fixture to the current time everytime before running tests and feed that fixture file with the updated time as a response in the cy.intercept(). But everytime cy.intercept() loads data from the original file (Not with the updated time) and then writes the fixture file with the updated time. How do I make sure that the fixture file is updated first and then intercept call?