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
When using @testing-library, we can only render the full tree and therefore the child components are rendered too. These child components may use some libraries or functions that are not available in the jsdom version that Jest uses, generating errors for the component we actually want to test.
When testing a component, we shouldn't have to worry about what dependencies its child has so there should be a global generic mock available.
The text was updated successfully, but these errors were encountered:
When using
@testing-library
, we can only render the full tree and therefore the child components are rendered too. These child components may use some libraries or functions that are not available in thejsdom
version that Jest uses, generating errors for the component we actually want to test.When testing a component, we shouldn't have to worry about what dependencies its child has so there should be a global generic mock available.
The text was updated successfully, but these errors were encountered: