import { render } from '@testing-library/react' import React from 'react' import type { SearchInputProps } from './SearchInput' import SearchInput from './SearchInput' const Wrapper = (props: Partial) => ( value} testId="search-input" /> ) describe('SearchInput', () => { it('`data-store-search-input` is present', () => { const { getByTestId } = render() expect(getByTestId('search-input')).toHaveAttribute( 'data-store-search-input' ) }) })