Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(pretty-format): Handle empty string children in React same asreact-test-renderer#14470

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@SimenB
Copy link
Member

Summary

I tried to upgrade the entire repo to React 18 (for#14463), and it turns outreact-test-renderer@18 has a change in how it handles empty string children. Which is fine, but aligning is a breaking change in Jest.

Test plan

Adjusted the test

@SimenBSimenB added this to theJest 30 milestoneSep 5, 2023
@netlify
Copy link

netlifybot commentedSep 5, 2023
edited
Loading

Deploy Preview forjestjs ready!

Builtwithout sensitive environment variables

NameLink
🔨 Latest commit84bf63a
🔍 Latest deploy loghttps://app.netlify.com/sites/jestjs/deploys/650982e4bd79130008198e99
😎 Deploy Previewhttps://deploy-preview-14470--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site configuration.

getChildren(item,children);
});
}elseif(arg!=null&&arg!==false){
}elseif(arg!=null&&arg!==false&&arg!==''){
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

this is the breaking change

React.createElement('Mouse',null,''),
'<Mouse>\n \n</Mouse>',
);
assertPrintedJSX(React.createElement('Mouse',null,''),'<Mouse />');
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

this shows the change that will show up in people's snapshots

@SimenBSimenBforce-pushed thealign-pretty-format-and-test-renderer-single-string-child branch from6350ca8 tof0fefaeCompareSeptember 8, 2023 08:26
@SimenBSimenBenabled auto-merge (squash)September 19, 2023 08:19
@SimenBSimenB merged commit149383e intojestjs:mainSep 19, 2023
@SimenBSimenB deleted the align-pretty-format-and-test-renderer-single-string-child branchSeptember 19, 2023 11:16
@SimenB
Copy link
MemberAuthor

I missed this made the tests time out on circle ci...1a96a5c fixes it

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend usingStackOverflow or ourdiscord channel for questions.

@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsOct 20, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

Jest 30

Development

Successfully merging this pull request may close these issues.

1 participant

@SimenB

[8]ページ先頭

©2009-2025 Movatter.jp