-
-
Save agustinfece/cc4095cfa8c064dd9d607bd8dcceca46 to your computer and use it in GitHub Desktop.
App.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { render, screen } from '@testing-library/react'; | |
import App from './App'; | |
test('renders learn react link', () => { | |
render(<App />); | |
const linkElement = screen.getByText(/learn react/i); | |
expect(linkElement).toBeInTheDocument(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment