-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CT DevServer should not watch files in Run Mode #22959
Labels
CT
Issue related to component testing
Comments
2 tasks
cypress-bot
bot
added
stage: needs review
The PR code is done & tested, needs review
and removed
stage: in progress
labels
Oct 3, 2022
cypress-bot
bot
added
stage: review
and removed
stage: needs review
The PR code is done & tested, needs review
labels
Oct 4, 2022
The code for this is done in cypress-io/cypress#24097, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior
The webpack and vite dev-servers, by default, watch all compilation files. This makes sense in open mode, but there is no need to do this in run-mode and can be taxing, especially when it comes to CI machines. We disable all config/spec watching in run-mode, but this philosophy doesn't extend to the CT dev-servers.
Desired behavior
Disable file watching for CT dev-servers when using run mode.
Test code to reproduce
cd ./react-cra5-ts
npm i
npx cypress run --component
src/App.tsx
. You will see another webpack recompilation. I've added a long wait in the spec to allow time to tweak while the test is running.Cypress Version
10.3.1
Other
I've only tested webpack but I'm assuming vite is the same. There are some other options we should consider disabling, such as
liveReload
andhmr
if applicable.The text was updated successfully, but these errors were encountered: