autoSizedTest.spec.tsx 430 B

12345678910111213141516171819
  1. import styled from '@emotion/styled';
  2. import {render, screen} from 'sentry-test/reactTestingLibrary';
  3. import {AutoSizedText} from './autoSizedText';
  4. describe('AutoSizedText', () => {
  5. it('renders the children', () => {
  6. render(
  7. <Container>
  8. <AutoSizedText>Hello</AutoSizedText>
  9. </Container>
  10. );
  11. expect(screen.getByText('Hello')).toBeInTheDocument();
  12. });
  13. });
  14. const Container = styled('div')``;