source:
reactapp/src/App.test.js@
2998dc4
Last change on this file since 2998dc4 was 7cb8c3c, checked in by , 2 years ago | |
---|---|
|
|
File size: 246 bytes |
Rev | Line | |
---|---|---|
[7cb8c3c] | 1 | import { render, screen } from '@testing-library/react'; |
2 | import App from './App'; | |
3 | ||
4 | test('renders learn react link', () => { | |
5 | render(<App />); | |
6 | const linkElement = screen.getByText(/learn react/i); | |
7 | expect(linkElement).toBeInTheDocument(); | |
8 | }); |
Note:
See TracBrowser
for help on using the repository browser.