import {Fragment} from 'react'; import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary'; import BulkController from 'sentry/components/bulkController'; describe('BulkController', function () { const pageIds = ['1', '2', '3']; const renderProp = jest.fn(); let toggleRow: any, selectPage: any, deselectPage: any, selectAll: any, unselectAll: any; const renderComponent = (pIds = pageIds, defaultSelectedIds?: string[]) => { const wrapper = render( {({ isAllSelected, isPageSelected, selectedIds, onRowToggle, onAllRowsToggle, onPageRowsToggle, }) => { renderProp(isAllSelected, isPageSelected, selectedIds); return ( {isPageSelected && 'whole page selected'} {isAllSelected && 'everything selected'}