-
Notifications
You must be signed in to change notification settings - Fork 386
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(engine-core): change console.errors to console.warns(#3692) #3698
Conversation
Thanks for the contribution! Before we can merge this, we need @yashpatel1998 to sign the Salesforce Inc. Contributor License Agreement. |
@yashpatel1998 Thanks for this PR! You need to accept the CLA before we merge, though. |
@abdulsattar I have already accepted the CLA, but seems it is not reflected here |
@yashpatel1998 could you confirm that the email used to sign your commits is the same as the one listed on your GitHub account (yashpatel.dev@gmail.com)? If they are different, it could cause issues with the CLA bot. |
@jmsjtu I confirm it is the same email address. Will re-running the bot pipeline fix the issue by any chance? |
@yashpatel1998 You could try pushing a new commit to this branch? |
BTW this will almost certainly have some broken tests once the CI runs... if you do |
@nolanlawson Pushed the integration-karma test changes. Could you check if the changes look good now? |
@yashpatel1998 If the tests are failing in development mode, it looks like it's because there is a console.warn/error that is not being accounted for. The test are designed such that, if you forget to add the correct Thank you again for the PR! |
@nolanlawson Got you. Let me look into it and push the fix. Thank you for the help ! :) |
replace spyOn(console, 'error') with spyOn(console, 'warn') in unit tests to check for logging of warn when manipulating node without lwc:dom="manual"
@nolanlawson Lastest commit should fix the failing tests. Let me know if there are changes to be done. |
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.
LGTM. +1 when the CI tests are passing.
Thank you @yashpatel1998 !! 🎉
This doesn't fully resolve #3692 but it does fix probably the biggest source of spurious console errors. |
@nolanlawson Do you want me to replace other console.errors as part of the same issue later? Excited for my first successful contribution to the framework! 😁 |
@yashpatel1998 Sure, those can be done in a separate PR. :) Thanks again for the contribution! |
Integration tests are failing but they look unrelated to this PR. Might need to check if something changed in Chrome or something. |
Yeah, seems like. |
Thanks very much! |
Details
change console.errors to console.warns
*fix: display warning instead of errors if the rendering continues despite the absence of lwc:dom="manual" directive
Does this pull request introduce a breaking change?
Does this pull request introduce an observable change?