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

Mock initial state #132

Open
luiznasciment0 opened this issue May 7, 2021 · 0 comments
Open

Mock initial state #132

luiznasciment0 opened this issue May 7, 2021 · 0 comments

Comments

@luiznasciment0
Copy link

Hey!

Let's say I have a provider that provides a CPF inside it state value. Then I use it in my component like this const { cpf } = useStateSignIn()

In my integration test (with Jest and Testing Library) I need to mock this cpf I got from my provider.

How can I do this?

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

No branches or pull requests

1 participant