Skip to content

Mock initial state #132

@luiznasciment0

Description

@luiznasciment0

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions