Skip to content

Commit

Permalink
Merge pull request #64 from JuanPabloDiaz/QA-ci-testing
Browse files Browse the repository at this point in the history
[add] testing files

next step: Fix the error I found
  • Loading branch information
JuanPabloDiaz authored Oct 26, 2023
2 parents 00212ed + 84566ab commit c68a888
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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();
});
5 changes: 5 additions & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

0 comments on commit c68a888

Please sign in to comment.