Skip to content

Conversation

@AhyoungRyu
Copy link
Contributor

  • before
Screenshot 2024-12-03 at 11 14 47 PM
  • after
Screenshot 2024-12-03 at 11 13 43 PM

GroupChannelProvider has some not covered lines but they're mostly from uikit-tools lib related logic. There could be a way to mock these lines too, but let me handle it separately.

@netlify
Copy link

netlify bot commented Dec 3, 2024

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit d40f6b5
🔍 Latest deploy log https://app.netlify.com/sites/sendbird-uikit-react/deploys/6750ff90cab59b00077001f2
😎 Deploy Preview https://deploy-preview-1271--sendbird-uikit-react.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 your Netlify site configuration.

Copy link
Collaborator

@chrisallo chrisallo left a comment

Choose a reason for hiding this comment

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

lgtm! Please take a quick look at my comment and share your opinion on it.

await act(async () => {
result.current.scrollPubSub.publish('scrollToBottom', { resolve: resolveMock });
await waitFor(() => {
expect(resolveMock).toHaveBeenCalled();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Adding some assertion checking current scroll positions would be great here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah added more cases here d40f6b5

@AhyoungRyu AhyoungRyu merged commit 8d1bfaa into feat/state-mgmt-migration-1 Dec 5, 2024
10 checks passed
@AhyoungRyu AhyoungRyu deleted the test/add-more-groupchannel-test branch December 5, 2024 01:34
AhyoungRyu added a commit that referenced this pull request Dec 11, 2024
- before
<img width="1099" alt="Screenshot 2024-12-03 at 11 14 47 PM"
src="https://github.com/user-attachments/assets/75716138-2ac6-46d1-8fe7-d3793d53c3be">

- after
<img width="1107" alt="Screenshot 2024-12-03 at 11 13 43 PM"
src="https://github.com/user-attachments/assets/182237d5-c322-4d59-8595-3abdaf15afa9">

GroupChannelProvider has some not covered lines but they're mostly from
uikit-tools lib related logic. There could be a way to mock these lines
too, but let me handle it separately.
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.

4 participants