Skip to content
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

Upgrade React to 16 for dev & tests #547

Merged
merged 2 commits into from
Jul 1, 2020
Merged

Upgrade React to 16 for dev & tests #547

merged 2 commits into from
Jul 1, 2020

Conversation

wcjordan
Copy link
Member

@wcjordan wcjordan commented Jun 27, 2020

Description

Upgrade React to React 16 in our dev & test envs. Also updated Sinon and switched to the default sandbox.

Motivation and Context

Want to start using React 16 more, so figured a start was to up our dev env.

How Has This Been Tested?

Tests & site-dev-server

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

var clock, sandbox, requestAnimationFramePolyfillSpy;

before(function () {
clock = sinon.useFakeTimers();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since all tests share a sandbox I moved this down to the test which actually uses it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: clock is defined below in the actual test, so we don't need the declaration here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, will do

@ivadenis
Copy link

ivadenis commented Jun 30, 2020

Is there an update on this?
Also, maybe it's a good idea to fix lifecycle methods deprecation warnings that come with react 16.

var clock, sandbox, requestAnimationFramePolyfillSpy;

before(function () {
clock = sinon.useFakeTimers();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: clock is defined below in the actual test, so we don't need the declaration here.

@wcjordan
Copy link
Member Author

wcjordan commented Jul 1, 2020

@ivadenis deprecated lifecycle methods will be more complicated and may require breaking functionality so it will be handled separately. It's tracked w/ #512 if you'd like more details.

@wcjordan wcjordan merged commit adc9ddd into master Jul 1, 2020
@wcjordan wcjordan deleted the react-upgrade branch July 1, 2020 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants