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

Testes: renderWithTheme #15

Closed
1 task done
1CarlosRenan opened this issue Mar 26, 2023 · 0 comments · Fixed by #23
Closed
1 task done

Testes: renderWithTheme #15

1CarlosRenan opened this issue Mar 26, 2023 · 0 comments · Fixed by #23
Assignees

Comments

@1CarlosRenan
Copy link
Member

1CarlosRenan commented Mar 26, 2023

React Testing Library e o Jest Styled-Components, devem renderizar o componente com o ThemeProvider em boa parte dos testes de estilos. Por isso, precisa de um componente para "substituir" o render padrão.

  • Configurar novo componente de testes: renderWithTheme.
@1CarlosRenan 1CarlosRenan self-assigned this Mar 26, 2023
@1CarlosRenan 1CarlosRenan linked a pull request Mar 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant