Skip to content
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: make vite re-run on supportFile change #17485

Merged
merged 3 commits into from
Jul 27, 2021

Conversation

elevatebart
Copy link
Contributor

User facing changelog

Previously, when we changed a spec file, or any of it's dependencies, the current spec would re-run. But the supportFile, though impactful in the runs, would not be watched.

Now Cypress watches the supportFile for changes and re-runs the current spec if it changes.

Additional details

To reproduce:

  • yarn workspace @cypress/vite-dev-server cy:open
  • navigate to the hello-with-jsx test
  • open npm/vite-dev-server/support.js see the css file imported in it.
  • open the imported file npm/vite-dev-server/styles.css
  • change the color to hotpink and save

The tests are not re-run before this PR
They are after the PR

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jul 26, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Jul 26, 2021



Test summary

18159 0 214 7Flakiness 3


Run details

Project cypress
Status Passed
Commit 6dbe811
Started Jul 26, 2021 11:27 PM
Ended Jul 26, 2021 11:37 PM
Duration 10:26 💡
OS Linux Debian - 10.8
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/commands/net_stubbing_spec.ts Flakiness
1 network stubbing > intercepting request > can intercept utf-8 request bodies without crashing
2 network stubbing > waiting and aliasing > can timeout incrementally waiting on requests
3 network stubbing > waiting and aliasing > can timeout waiting on a single request using "alias.request"

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

Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small ones!

npm/vite-dev-server/src/index.ts Outdated Show resolved Hide resolved
npm/vite-dev-server/src/makeCypressPlugin.ts Outdated Show resolved Hide resolved
@lmiller1990 lmiller1990 self-requested a review July 26, 2021 23:41
@lmiller1990 lmiller1990 merged commit 6cbf4c3 into master Jul 27, 2021
tgriesser added a commit that referenced this pull request Aug 2, 2021
…ui/add-context-code-review

* unified-desktop-gui:
  feat: Structuring context & schema so it can be used on the client (#17489)
  fix: vue 3 types, beta suffix & component name (#17508)
  fix: last test skipped with top navigation and already run suite (#17498)
  chore: Update Chrome (beta) to 93.0.4577.18 (#17536)
  fix: use process.geteuid and catch uid errors in file util (#17488)
  build: make vite build strict (#17509)
  release 8.1.0
  fix(server): correctly include projectRoot when adding a CI project from GUI (#17514)
  fix(types): update cy.shadow docs url (#17506)
  chore(npm/webpack-preprocessor): fix CI pipeline (#17515)
  fix: test runner reporter performance (#17243)
  chore: release @cypress/vue-v3.0.0-beta.4
  chore: release @cypress/vite-dev-server-v2.0.3
  fix: make vite re-run on supportFile change (#17485)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants