john-d-pelingo/react-twitch-streamers

View on GitHub
src/scenes/__tests__/App.test.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import '@testing-library/jest-dom/extend-expect'

import { render } from '@testing-library/react'

describe('Dummy component test', () => {
  it('renders', () => {
    const { getByLabelText } = render(
      <div aria-label="Dummy component">Hello World!</div>,
    )

    const dummyElement = getByLabelText('Dummy component')

    expect(dummyElement).toHaveTextContent('Hello World!')
  })
})