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

Mocking Localization for Jest Testing #218

Open
owenadley opened this issue Jul 12, 2022 · 2 comments
Open

Mocking Localization for Jest Testing #218

owenadley opened this issue Jul 12, 2022 · 2 comments

Comments

@owenadley
Copy link

owenadley commented Jul 12, 2022

Can anybody help out with mocking this library for jest testing?
Currently when I run a test that renders a component which uses localization, I am getting this error.
There is no related testing documentation that I could find. Any help would be appreciated!

Screen Shot 2022-07-12 at 12 41 08 PM

@stefalda
Copy link
Owner

Hi,
have you checked #72 and #37?

@riddy6421
Copy link

I don't think this(the mock #72) works on the current react native version

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

3 participants