Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 172 Bytes

jest-testing.md

File metadata and controls

8 lines (7 loc) · 172 Bytes

How to mock the library for testing with jest?

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