-
Notifications
You must be signed in to change notification settings - Fork 58
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
CPLAT-8834 fix tests for redux 7.1.3 #440
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
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.
+1
// then `areStatesEqual` shows up 2 times due to `initialState`. | ||
expect(methodsCalled, ['mapStateToProps', 'areStatesEqual', 'areStatesEqual']); | ||
expect(methodsCalled, contains('mapStateToProps')); | ||
expect(methodsCalled, contains('areStatesEqual')); |
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.
FYI you can also do
containsAll(['mapStateToProps', 'areStatesEqual']));
+ Once we get all consumers sorted out with their tests that were assuming that the js `Provider` exposed by react-redux (e.g. Workiva/over_react#440), we can safely release this.
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.
+10
- All tests passed locally when pointing to Workiva/react-dart@fb5fdab - which contains the version of react-redux that broke all the things before.
@Workiva/release-management-pp
+ Once we get all consumers sorted out with their tests that were assuming that the js `Provider` exposed by react-redux (e.g. Workiva/over_react#440), we can safely release this.
Motivation
The NPM package
react-redux
that over_react consumes from react-dart changed its "Provider" component from a class based component to a function component in the 7.1.1 patch version. This broke some expectations that our tests had in place for over_react_redux.Changes
Release Notes
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
QA Checklist
packages.json
'sreact-redux
version to"7.1.3"
npm run build
and publink react-dart to over_react.pub run dart_dev test -P dartdevc
and make sure all tests pass.pub run dart_dev test --build-args="-r" -P dart2js
and make sure all tests pass.Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: