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

Added a DevTools store test for component names #17283

Merged
merged 1 commit into from Nov 6, 2019

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Nov 5, 2019

Follow up to #17274

  1. Add a Store test for display name handling for memo, forwardRef, and lazy components.
  2. Remove outdated dead code for React.lazy.
  3. Update DT tests to include HOC badge names in the serialized store

}
}

let hocs = hocDisplayNames === null ? '' : ` [${hocDisplayNames.join('][')}]`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Serialize the store in a format that includes the HOC badges, more like the Badge component does in the real DevTools UI. This will make our tests more meaningful.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this is pretty. Nice.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 5, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8d9eb1c:

Sandbox Source
heuristic-bartik-itusr Configuration

@sizebot
Copy link

sizebot commented Nov 5, 2019

Warnings
⚠️ Could not find build artifacts for base commit: 4f02c93

Size changes (stable)

Generated by 🚫 dangerJS against 8d9eb1c

@sizebot
Copy link

sizebot commented Nov 5, 2019

Size changes (experimental)

No significant bundle size changes to report.

Generated by 🚫 dangerJS against 8d9eb1c

1. Add a Store test for memo, lazy, and forwardRef components
2. Remove dead code for React.lazy
3. Update DT tests to include HOC badge names in the serialized store
@bvaughn bvaughn merged commit 3452706 into facebook:master Nov 6, 2019
@bvaughn bvaughn deleted the devtools-tests branch November 6, 2019 06:19
@ibarrae
Copy link

ibarrae commented Apr 1, 2020

One question folks, has this been released already? I couldn't find any entry on the tags @bvaughn @threepointone

@gaearon
Copy link
Collaborator

gaearon commented Apr 1, 2020

Why does it matter? This is an update to an internal test.

@ibarrae
Copy link

ibarrae commented Apr 1, 2020

Why does it matter? This is an update to an internal test.

You are right, but I will assume that if this PR is not related, then #17274 has not been released either since they are both related.

@gaearon
Copy link
Collaborator

gaearon commented Apr 1, 2020

Pretty sure #17274 is released.

@ibarrae
Copy link

ibarrae commented Apr 1, 2020

Awesome @gaearon thanks for the quick response 🎉

@bvaughn
Copy link
Contributor Author

bvaughn commented Apr 1, 2020

I couldn't find any entry on the tags

I'm not sure what you mean by this but #17274 is listed in the changelog as being released back in November.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants