Skip to content

Commit

Permalink
getByText
Browse files Browse the repository at this point in the history
  • Loading branch information
staff0rd committed Dec 8, 2022
1 parent 8791379 commit b2c68a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { render } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import App from './App';

test('renders without crashing', () => {
const { baseElement } = render(<App />);
expect(baseElement).toBeDefined();
render(<App />);
screen.getByText('Tab 1');
});

0 comments on commit b2c68a4

Please sign in to comment.