Cypress runs old code instead of running updated code changes

Viewed 736

I'm running into an issue with Cypress.io that I don't see too much helpful information about out there. Essentially, whenever I make changes to my code (e.g. implement a new method, remove an old method, etc.) and save, the test runner goes ahead and executes my test file as it should. However, it runs the code that was present prior to the changes. I've tried implementing hooks, eliminating hooks, closing the dashboard after each run, clearing the app data; not sure what the source of the issue is though.

For context, I'm running cypress using Yarn (yarn cypress open to open the dashboard) and am keeping my test files saved in cypress/integration/.

0 Answers
Related