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

chore: update react-native to 0.69.1 #1010

Merged
merged 2 commits into from
Jul 18, 2022
Merged

Conversation

mdjastrzebski
Copy link
Member

@mdjastrzebski mdjastrzebski commented Jul 18, 2022

Summary

Support for React Native 0.69.1.

Resolves #998

Test plan

All checks and tests pass.

Base automatically changed from chore/deps-react-native-0.68.2 to main July 18, 2022 15:28
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

Can we make sure the examples are upgraded as well? It's cool to make it separate though

@mdjastrzebski mdjastrzebski changed the title chore: update react-native deps chore: update react-native to 0.69.1 Jul 18, 2022
jest.useFakeTimers(fakeTimerType);
const { getByText, queryByText } = render(<BananaContainer />);
test('waits for element until it stops throwing using modern fake timers', async () => {
jest.useFakeTimers('modern');
Copy link
Member

Choose a reason for hiding this comment

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

We could wait for Jest 28 PR to be merged first

Copy link
Member Author

Choose a reason for hiding this comment

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

So the test works, it just needs to be using two separate test entries instead of one test.each entries.

Copy link
Member Author

Choose a reason for hiding this comment

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

In my testing the test worked fine when each cause had only one of modern and legacy entries, but failed when there were both of them. I have a feeling that his is somehow connected to after test cleanup since splitting tests helped.

@thymikee maybe it make more sense to you as you know more about Jest internals.

@mdjastrzebski mdjastrzebski force-pushed the chore/deps-react-native-0.69 branch from 2201858 to e4fcbf4 Compare July 18, 2022 15:37
@mdjastrzebski mdjastrzebski marked this pull request as ready for review July 18, 2022 15:48
@mdjastrzebski mdjastrzebski merged commit bdd8f75 into main Jul 18, 2022
@mdjastrzebski mdjastrzebski deleted the chore/deps-react-native-0.69 branch July 18, 2022 16:14
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.

Verify support for RN 0.69 + React 18.
2 participants