Skip to content
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

Provide some global mocks #6

Open
ivolimasilva opened this issue Nov 26, 2019 · 0 comments
Open

Provide some global mocks #6

ivolimasilva opened this issue Nov 26, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@ivolimasilva
Copy link
Contributor

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.

@ivolimasilva ivolimasilva added the enhancement New feature or request label Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant