How to mock the library for testing with jest?

October 31, 2021 ยท View on GitHub

jest.mock('react-native-toast-message', () => ({
  show: jest.fn(),
  hide: jest.fn()
}));