-
Notifications
You must be signed in to change notification settings - Fork 70
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: Added support for node v16 #1068
Conversation
✔️ Deploy Preview for paragon-openedx ready! 🔨 Explore the source changes: fdfdf5b 🔍 Inspect the deploy log: https://app.netlify.com/sites/paragon-openedx/deploys/621f7af704c3f80008a7744c 😎 Browse the preview: https://deploy-preview-1068--paragon-openedx.netlify.app |
✔️ Deploy Preview for paragon-edx ready! 🔨 Explore the source changes: fdfdf5b 🔍 Inspect the deploy log: https://app.netlify.com/sites/paragon-edx/deploys/621f7af7f8b2050008382a37 😎 Browse the preview: https://deploy-preview-1068--paragon-edx.netlify.app |
@Jawayria you can update the snapshots and update the PR as per @adamstankiewicz we are okay to update those failed snapshots in the tests you can run |
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.
In addition to @binodpant's comment above, I added a nit comment.
.github/workflows/ci.yml
Outdated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} | ||
run: npx semantic-release --dry-run --branches=${{ steps.extract_branch.outputs.branch | ||
}} |
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.
nit: unnecessary newline? I believe }}
could be on previous line?
package.json
Outdated
@@ -44,7 +44,7 @@ | |||
"font-awesome": "^4.7.0", | |||
"lodash.uniqby": "^4.7.0", | |||
"mailto-link": "^1.0.0", | |||
"prop-types": "^15.8.1", | |||
"prop-types": "^15.7.2", |
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.
Curious why this was downgraded?
Updated the snapshots. Now tests are passing with Node 12 and 14 but one test failure with Node 16 |
hmm I saw this same error in the explore catalog node16 node I looked last week and have not figured out why yet... it seems there is an error about MutationObserver, which probably has changed api and some lib is still using it?
|
maybe this is useful: testing-library/dom-testing-library#477 |
actually for me it was due to a different reason but the same path of failures
|
"jest": "^24.5.0", | ||
"jest-cli": "^24.7.1", | ||
"jest": "^25.0.0", | ||
"jest-cli": "^25.0.0", |
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.
Updated jest version to fix TypeError: MutationObserver is not a constructor"
when running tests with Node 16.
Reference
wrapper = mount(<Button | ||
{...defaultProps} | ||
/>); | ||
/>, { attachTo: app }); |
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.
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.
added this to troubleshooting section of doc https://openedx.atlassian.net/wiki/spaces/AC/pages/3318054984/Node+16+Upgrade
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 once we resolve the eslint issues by bringing the changes from here into this PR first.
When we merge this, I think we'll want the semantic-release type to be feat
instead of build
to denote via a new release version that Node 16 is now officially supported and so the changes to prop types are published as well.
Codecov Report
@@ Coverage Diff @@
## master #1068 +/- ##
==========================================
- Coverage 90.86% 90.59% -0.28%
==========================================
Files 180 190 +10
Lines 2738 2989 +251
Branches 560 657 +97
==========================================
+ Hits 2488 2708 +220
- Misses 237 268 +31
Partials 13 13
Continue to review full report at Codecov.
|
feat: Added support for Node 16
3d3d8a2
to
fdfdf5b
Compare
🎉 This PR is included in version 19.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
JIRA: https://openedx.atlassian.net/browse/BOM-3260
Adds support for Node 16 and introduced some PropType changes to fix to fix eslint errors.