-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
fix(vite-dev-server): only re-run tests when specs deps are updated #16215
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
The code looks fine. I did not test it yet, so let's hold of merging until we give it a bit of a test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's check for:
- circular imports
- add a check to bail out of potential infinite loop
- general testing
Probably not related to this PR but I could not test with npm/design-system. Seems the project is entirely broken. I don't know when this happened. This should be failing on CI. |
The error in the screenshot above is also in develop. Not introduced here. I made an issue: #16241 |
…16215) Co-authored-by: Lachlan Miller <[email protected]>
…16215) Co-authored-by: Lachlan Miller <[email protected]>
…16215) Co-authored-by: Lachlan Miller <[email protected]>
User facing changelog
Only re-runs the tests, when one of the dependency of the specs is updated, instead of every file in the project.
Additional details
Before this PR, the active spec was re-run when any file within the project, text or not, was created, modified or deleted. This could trigger some infinite loops when creating for example snapshots or screenshots. Now cypress . Slight issue, but much better