-
Notifications
You must be signed in to change notification settings - Fork 133
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
Update npm packages #645
Update npm packages #645
Conversation
Modify line numbers to apply this patch
Thanks @htdat - Is there another way to test this without relying on GitHub Actions? Just wondering if I could test this locally and what I should expect or be able to see. |
Yes, you can test this on your local machine but note that it's not exactly the same with GitHub Actions. Steps to run similar tests on your local machine:
For step 3, you can replace What you can expect:
Regarding E2E tests, I've found out that some tests in tests/e2e/specs/calendar-body.test.js are not stable as described here #652 |
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.
Other than the different version of the dependencies, I can confirm that only npm run test-e2e
shows an error when running locally. All other commands run as expected and this PR looks good to me.
package.json
Outdated
"@wordpress/jest-console": "^3.6.0", | ||
"@wordpress/jest-preset-default": "^6.0.0", | ||
"@wordpress/jest-puppeteer-axe": "^1.7.0", | ||
"@babel/core": "^7.14.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.
Is there a specific reason, why you're not using the latest version, in this case 7.14.3, as seen on https://www.npmjs.com/package/@babel/core?
I noticed that for other dependencies there are also more recent versions available:
- @babel/preset-env: 7.14.1 → 7.14.1
- @testing-library/react: 10.4.9 → 11.2.7
- @testing-library/user-event: 10.4.1 → 13.1.9
I haven't tested all dependencies, but it seems that for many of them more recent versions are available.
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.
Is there a specific reason, why you're not using the latest version, in this case 7.14.3, as seen on https://www.npmjs.com/package/@babel/core?
I simply used npm update
for all of these packages as mentioned in this commit f8c2ce1
It looks like 7.14.3 has just been released after my PR here. https://www.npmjs.com/package/@babel/core
The same should go for other dependencies.
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've run npm update
. All of the packages should be up-to-date now.
Close #620
Close #629
Close #640
Close #641
Description
node-sass
to4.14.1
(similar to PR Bump node-sass from 4.13.0 to 4.13.1 #620)npm update
(including update for lodash Bump lodash from 4.17.15 to 4.17.21 #641)ua-parser-js
no longer exists on any dependency afternpm update
above.Steps to Test
Looking at the
E2E and JS tests
for this PR https://github.com/Automattic/Edit-Flow/runs/2562511361?check_suite_focus=true