You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i was wondering if we can write unit tests for server side components using just ? since the the return data from server side components when return from server is some complex Object. Maybe we can add few unit tests in this demo project to showcase the uses.
The text was updated successfully, but these errors were encountered:
That complex object is the implementation details of the server component, which IMO should not be tested in the unit tests. I think We can test the server components just like the normal functional component, we can assert if some child component is getting rendered or not, and with what props the child components are getting rendered.
So i was wondering if we can write unit tests for server side components using just ? since the the return data from server side components when return from server is some complex Object. Maybe we can add few unit tests in this demo project to showcase the uses.
The text was updated successfully, but these errors were encountered: