Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Update to React 16 #6

Closed
wants to merge 1 commit into from
Closed

Update to React 16 #6

wants to merge 1 commit into from

Conversation

AEgan
Copy link
Contributor

@AEgan AEgan commented Oct 4, 2017

The previous release came just before React 16. This actually updates react to version 16 in the dev dependencies, and updates other libraries that have been bumped to support react 16.

The requestAnimationFrame global polyfill is to avoid errors when running the tests.

Also adds package-lock.json to the gitignore to avoid confusion.

The previous release came just before React 16. This actually updates react to
version 16 in the dev dependencies, and updates other libraries that have been
bumped to support react 16.

The requestAnimationFrame global polyfill is to avoid errors when running the
tests.

Adds package-lock.json to the gitignore to avoid confusion.
@@ -27,6 +27,7 @@ describe('SignalProvider', () => {
const c = shallow(<SignalProvider features={features}><div/></SignalProvider>);
expect(c.find('div').length).toBe(0);
c.instance().updateSignals({showStuff: true});
c.update();
Copy link

Choose a reason for hiding this comment

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

So this was the trick to handle the async behavior? Wow.

Copy link

@Brantron Brantron Oct 4, 2017

Choose a reason for hiding this comment

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

Enzyme is allowing the object reference to get out of sync with the actual state of the object under test. This update method gets the props, dom structure, etc back in line with the current state of the originally referenced instance. I was under the impression that enzyme was going to be updated to allow us to get by without adding these but they are not.

enzymejs/enzyme#1175

Copy link

@kalimar kalimar left a comment

Choose a reason for hiding this comment

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

Looks good - are there gotchas here that are worth going over with the team for when we try to upgrade the NDX?

Copy link

This PR is open and inactive for 30 days. Merging PRs open for a long time is error-prone. Please proceed to merging or make a comment to keep it open. You can also prevent PRs from being tagged stale ot closed with 'keep-open' tag. If there is no activity in 90 days, this PR will be closed

@github-actions github-actions bot added the stale label Feb 17, 2024
Copy link

This PR was closed because it has been inactive for 90 days since being marked as stale.

@github-actions github-actions bot closed this May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants