-
Notifications
You must be signed in to change notification settings - Fork 117
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
chore(dependencies): bumping plate packages and react version to 18 [TOL-2415] #1756
Conversation
aodhagan-cf
commented
Sep 30, 2024
•
edited
Loading
edited
- Bumping plate packages
- Updating to react v18, required as the cypress component test webpack build fails without it after bumping some of the plate packages
- Fixing cypress component test parallelism
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension. |
@@ -71,7 +71,7 @@ jobs: | |||
- run: | |||
name: Run cypress component tests | |||
command: | | |||
TESTFILES=$(circleci tests glob cypress/component/**/*.ts | circleci tests split --split-by=timings --timings-type=filename | tr '\n' ',') | |||
TESTFILES=$(circleci tests glob cypress/component/**/*.ts | circleci tests split --split-by=timings --timings-type=filename | awk '{if (NR>1) printf ","; printf "%s", $0} END {if (NR>0) printf " "}') |
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.
This is a known issue with cypress, if you end a CSV with a comma the cypress command ignores it and runs everything, we are actually running all tests but now in 3 containers instead of splitting
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.
wonder if we have this issue in other projects too? (experience-packages, ..)
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.
experience-packages is not parallelised but yeah it's possible with the combo of test field splitting in circleci
Co-authored-by: Chris Helgert <chrishelgert@users.noreply.github.com>
packages/_test/package.json
Outdated
@@ -46,7 +46,7 @@ | |||
}, | |||
"peerDependencies": { | |||
"@contentful/app-sdk": "^4.29.0", | |||
"react": ">=16.8.0" | |||
"react": ">=17.0.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.
here too :D (and in the other ones too :D)
packages/rich-text/package.json
Outdated
}, | ||
"devDependencies": { | ||
"@contentful/field-editor-test-utils": "^1.5.1", | ||
"@contentful/rich-text-react-renderer": "^15.16.4", | ||
"@types/is-hotkey": "^0.1.6", | ||
"@udecode/plate-test-utils": "^3.2.0", | ||
"prism-react-renderer": "2.4.0", | ||
"react": ">=16.14.0" | ||
"react": "17.0.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.
dev should be react 18 right?
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.
potentialy we don't even need it as it's in the global package.json?
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.
Yeah I think we don't need to change this, but will anyways. Rich text is the only package that even has a react dev dependency