-
Notifications
You must be signed in to change notification settings - Fork 275
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
Expose mocks for testing #1968
Comments
Hello @lr-mjaouen , we do not expose mocks. Could you provide an example, where you find yourself in need of such mocks, please? |
Hello,
Not optimal. Could be useful to have default mocks (Messages, Channels, Attachements etc). |
@lr-mjaouen for now we do not plan to support maintenance of mocks. The situation may change in the future with priorities shifting. We will keep this as a feature request. |
I've run into this issue as well, it would really help us to be able to get access to these ready-made mocks rather than having to try and create them ourselves. The use case for us specifically is where we are wanting to test components that are overriding the defaults like a custom message input. |
Motivation
I may have miss it? but would it be possible to expose mocks for testing?
Or what are your recommendation for testing?
How do you bypass following warnings or furnish the providers (so far I mock component & hooks from gs to just render anything & do nothing),
Thank you.
Proposed solution
channel mock builder exposed,
Client / Channel components mocks? (like Apollo client for instance https://www.apollographql.com/docs/react/development-testing/testing/)
MessageList/VirtualMessageList mocked component?
Acceptance Criteria
The text was updated successfully, but these errors were encountered: