Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

fix: fix file watching on compilation error #66

Merged
merged 3 commits into from
Feb 28, 2020
Merged

Conversation

kuceb
Copy link
Contributor

@kuceb kuceb commented Feb 27, 2020

fix issue where compilation error does not cause cypress to refetch the spec and display the error without a manual page reload.

fix #65

  • use finally() instead of tap() so file.emit('rerun') will be called for both the failing/success code paths

also

  • use async fs methods in e2e spec
  • upgrade sinon, mocha
  • add testing against webpack@latest to potentially catch new issues (maybe this should be a separate automation, and we should test fixed previous versions for compatability)

how to reproduce error (before this change):

in this repo:

npx cypress open
[select compile-error.js]
[make a change + save compile-error.js]
[notice new syntax error is not reflected in browser gui until manual refresh]

@@ -157,7 +162,7 @@ const preprocessor = (options = {}) => {
latestBundle = createDeferred()
bundles[filePath] = latestBundle.promise

bundles[filePath].tap(() => {
bundles[filePath].finally(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this should be the only functional change

@kuceb kuceb changed the title fix: file watching on compilation error fix: fix file watching on compilation error Feb 28, 2020
@kuceb kuceb merged commit f790d5d into master Feb 28, 2020
panzarino pushed a commit to cypress-io/cypress that referenced this pull request Sep 17, 2020
…ck-preprocessor#66)


fix issue where compilation error does not cause cypress to refetch the spec and display the error without a manual page reload.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compilation errors do not cause browser to refesh spec
2 participants