-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fix: Upgrade to react 18 #159
Conversation
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.
Looks Great! Just two minor change requests
@@ -45,5 +45,5 @@ jobs: | |||
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }} | |||
EVENT_MESSAGE: ${{ github.event.message }} | |||
HOME: 'home/runner' | |||
run: | |
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 looks like an unnecessary change. can you re add the space here so that it does not appear in the PR diff
src/hooks.spec.tsx
Outdated
<OptimizelyProvider optimizely={optimizelyMock}> | ||
<MyExperimentComponent options={{ timeout: mockDelay }} /> | ||
</OptimizelyProvider> | ||
); | ||
expect(component.text()).toBe('null|false|false'); // initial render | ||
await waitFor(() => expect(screen.getByTestId('result')).toHaveTextContent('null|false|false')); |
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.
Can you add the // initial render
comment here again
@opti-jnguyen Can you take a look when you get some time. |
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.
LGTM! Great work @shaharyar123
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.
Seems fine when testing locally - LGTM!
Summary
enzyme
withreact testing library
to make unit tests work with React 18.Test Plan