import { render } from '@testing-library/react' import React, { useRef } from 'react' import Popover from './Popover' const PopoverTemplate = (props: any) => { const ref = useRef(null) return ( <>

Whoa! Look at me!

) } describe('Popover', () => { it('`data-store-popover` is present', () => { const { getByTestId } = render() expect(getByTestId('store-popover')).toHaveAttribute('data-store-popover') }) })