import { render, screen } from '@testing-library/react'; import ActivationCard from './ActivationCard'; test('ActivationCard handles onDismiss callback', () => { // @ts-expect-error - TS2344 - Type 'undefined' does not satisfy the constraint 'any[]'. const mockOnDismiss = jest.fn<[], undefined>(); render( , ); screen.getByLabelText('Dismiss card').click(); expect(mockOnDismiss).toHaveBeenCalled(); });