diegohaz / diegohaz/constate

Mock initial state

Open
#132 1 comment 8 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4k
Forks
94
Avg merge
27m
Merged PRs (30d)
43

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.