Skip to content

Instantly share code, notes, and snippets.

@nemrosim
Created March 27, 2022 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemrosim/28b54f0f1af86f8e1eb611f559cffd18 to your computer and use it in GitHub Desktop.
Save nemrosim/28b54f0f1af86f8e1eb611f559cffd18 to your computer and use it in GitHub Desktop.
const sameImage = screen.getByAltText('logo');
expect(sameImage).toBeInTheDocument();
});
+
+it('should render paragraph with text', () => {
+ render(<App />);
+
+ expect(
+ screen.getByText('Edit src/App.tsx and save to reload.'),
+ ).toBeInTheDocument();
+});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment