-
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
Decaff driver part 4 #7227
Decaff driver part 4 #7227
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Flaky failure. |
In regards to I wonder if we can pass these strings to a function or use a tagged template for them that can do something similar. Since tagged templates don’t have CoffeeScript’s benefit of being executed at compile-time, they can’t know the correct level of indentation to strip. I think we might need to just use a function and pass in the level of indentation, which isn’t the best, but it’s better than left-aligning everything in my opinion. So it might look something like: {
command: {
some_error: s(3, `
You made a grievous error.
I can't believe you've done this.
`)
}
} We pass
|
We use Lines 19 to 25 in ca6ceeb
|
Nice! That's probably what we should use here. This seems like a big caveat for our use-case here though:
Some error message substitute in other error messages, which could be multiline. I wonder if there's any reason not to just always use the |
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.
@sainthkh Feel free to move out the error_messages.coffee conversion from this PR if it's easier, since we want more changes and review on that specific file. I can approve everything else otherwise.
There are some conflicts now since we merged in a big feature.
|
oh no, more conflicts 🤦♀️ |
|
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Part of #2690
Now no CoffeeScript file in
driver/src
! 🎊NEVER SQUASH THIS PR