import { IonButton } from '@ionic/react'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; test('should support onDoubleClick bindings', () => { const mockFn = jest.fn(); render(Click me); // Simulate a double click on the button fireEvent.dblClick(screen.getByText('Click me')); expect(mockFn).toBeCalled(); });