mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Update README due to deprecation of react-testing-library's toBeInTheDOM (#5334)
This commit is contained in:
committed by
Joe Haddad
parent
81830dc9a2
commit
12f794cfdb
@@ -1496,7 +1496,7 @@ import App from './App';
|
||||
|
||||
it('renders welcome message', () => {
|
||||
const { getByText } = render(<App />);
|
||||
expect(getByText('Welcome to React')).toBeInTheDOM();
|
||||
expect(getByText('Welcome to React')).toBeInTheDocument();
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user