(options: ToastOptions = {})
| 16 | import userEvent from '@testing-library/user-event'; |
| 17 | |
| 18 | function Example(options: ToastOptions = {}) { |
| 19 | return ( |
| 20 | <> |
| 21 | <ToastContainer /> |
| 22 | <Button variant="primary" onPress={() => ToastQueue.neutral('Toast', options)}> |
| 23 | Show Toast |
| 24 | </Button> |
| 25 | </> |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | describe('Toast', () => { |
| 30 | installPointerEvent(); |
nothing calls this directly
no outgoing calls
no test coverage detected