honigle/src/App.test.tsx

10 lines
266 B
TypeScript
Raw Normal View History

2022-01-16 15:11:27 +04:00
import React from 'react'
import { render, screen } from '@testing-library/react'
import App from './App'
test('renders learn react link', () => {
2022-01-16 15:11:27 +04:00
render(<App />)
const linkElement = screen.getByText(/learn react/i)
expect(linkElement).toBeInTheDocument()
})