Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: allow use of javascript in config file #18061
feat: allow use of javascript in config file #18061
Changes from all commits
ff3baa1
5955046
b851c3b
4421239
3bb303a
6c3b0bc
cae9227
8ad1b4b
7b06e1b
079b666
01a1c6c
5a606cf
d82aa70
dac75eb
81a9a04
93b94be
a092d67
4144b54
416988c
bc90f4b
083c05e
fe42eab
13b603d
089660c
8115c02
da13373
0bf4083
a1c4007
af4608e
db85633
b52d096
f7cacb3
d9ad213
2e562ed
ac8ca36
85d78a2
36bd9ae
1640b02
2534208
6b070a7
d8901fc
1e5541d
8ea6b92
47d36f6
94c6f04
f33fc7f
7bad158
30085ca
5ee1b2c
bd8ee94
62470d0
0b7f13f
90fb7c4
55951cc
9e461aa
19587ba
aac1402
5499d36
a1d4727
8c574c8
5453ab5
b4a2455
8a59ad0
515ecdb
e84968e
c139381
4fbd0f9
9c6b625
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Do we need to return here or is it fine to continue execution?
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.
These statements are here to avoid leaving 2 processes running at the same time for reading the config.
If the previous one has not responded, we kill it.
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.
We should not return
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.
Are we able to do something like
if (!err.isCypressErr)
?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.
Since I do not want to change the tests drastically, I would prefer not yet.
When we will remove completely the availability of cypress.json I can safely remove all the tests for json and do the work for error management.
I doubt that user code will ever send a Cypress error though. But I might be mistaken.
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.
Do we need to bump chokidar? Last time we did, it introduced some unexpected flake to CI. Unless we need too, I think deps should be bumped in their own PR. If we need 3.5.1, though, that's different.
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.
I found that cypress was only watching the first set of changes.
Closing the project and re-opening it was not restarting the watchers properly.
There was a fix done specifically fo that in v3.3 but it broke a lot more than it fixed.
Updating chokidar to 3.5.1 seemed to fix all the problems I had.
https://github.com/paulmillr/chokidar#changelog