Closed obeobe closed 1 year ago
For now you can do it on a dev server basis:
hot: false
server: { hmr: false }
We should fix this.
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
This issue has been closed due to inactivity.
Current behavior
Setting
watchForFileChanges
tofalse
seems to have no effect in component testing (i.e. when starting Cypress withnpx cypress open-ct
).It does work with regular Cypress (i.e.
npx cypress open
).I tried with and without adding it under the
component
key in addition to root - and in both cases it didn't work.Desired behavior
Cypress should not refresh and restart the test when the spec file changes when the
watchForFileChanges
flag is set to false.Test code to reproduce
My
cypress.json
:Code:
And then make a change in the file, and save.
Cypress Version
8.7.0 (currently the latest 8.* version)
Other
It's a big issue because IntelliJ saves files automatically and it causes many undesired refreshes.