I am unable to test with this library #493
Unanswered
saisrinivas-nineleaps
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have mocked the library as per the suggested like this
jest.mock('react-native-toast-message', () => ({
show: jest.fn(),
hide: jest.fn(),
}));
yet I am getting an error at Toast
here is this console error
console.error
Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
Beta Was this translation helpful? Give feedback.
All reactions