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
-
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