diegohaz / constate

React Context + State

Home Page:https://codesandbox.io/s/github/diegohaz/constate/tree/master/examples/counter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mock initial state

luiznasciment0 opened this issue · comments

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?