-
Notifications
You must be signed in to change notification settings - Fork 650
test: Add React 18 to test matrix #771
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
Conversation
test/TransitionGroup-test.js
Outdated
act(() => { | ||
jest.runAllTimers(); | ||
}); | ||
expect(log).toEqual(['appear', 'appear', 'appearing', 'appeared']); |
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.
The second appear
is new i.e. there is an additional onEnter
call.
test/TransitionGroup-test.js
Outdated
act(() => { | ||
jest.runAllTimers(); | ||
}); | ||
expect(log).toEqual(['enter', 'enter', 'entering', 'entered']); |
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.
The second enter
is new i.e. there is an additional onEnter
call.
@eps1lon |
c8dde8e
to
62adda3
Compare
React 18 was not released yet. Only a release candidate is available. I've updated the branch but it shouldn't be merged yet considering it's only using a release candidate. |
Yes, we don't drop support for older versions of React, so we shouldn't update React in |
Yeah, I'll reach him again. |
I have been summoned. Sorry if i've ignored anyone, it's inadvertent, i've just not have a ton of OSS time or energy lately. What do y'all need from me? I'm happy to hand permissions or move stuff around as needed. Also from a maintenance standpoint, I'd just drop react 16 support at this point. it's been over a year since 17 was released, make y'alls life easier. |
Hey, #772 needs your attention. Specifically, the environment secrets from Travis CI need to be ported to GitHub actions. I think this mainly affects semantic-release i.e. a npm release token. |
I've added @koba04 to the npm package, they should now be able to use their token for any CI setup 👍 |
@jquense I also want to add @eps1lon as a maintainer of this repository. |
@eps1lon I've invited you as an admin of the GitHub and npm of this package, so we can move this forward👍 |
62adda3
to
bcdcbbb
Compare
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.
Thank you for your great works 👍 👍
I've left some comments, so please confirm them🙏
act(() => { | ||
jest.runAllTimers(); | ||
}); |
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.
Why is this call added?
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.
Let me check. I think it was due to previous tests relying on implementation details related to React scheduling timings. Will check what specifically was happening.
@@ -334,16 +356,19 @@ describe('Transition', () => { | |||
|
|||
onEntered() { | |||
expect(nodeRef.current.textContent).toEqual(`status: ${ENTERED}`); | |||
expect(count).toEqual(2); | |||
done(); |
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.
Should we have to verify this onEntered
has been called?
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.
This is similar to #771 (comment):
This condition moved down to
await waitFor(() => {
expect(count).toEqual(2);
});
Co-authored-by: Toru Kobayashi <koba0004@gmail.com>
I'll approve this when #771 (comment) has been addressed. |
See #771 (comment) |
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.
Thank you, LGTM! 👍
🎉 This PR is included in version 4.4.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.