Testing Page Components
Learn to test page-level components dependent on React Router in this lesson.
We'll cover the following...
Starter project
The app in the starter project allows a user to add scores against a person.
A copy of the starter project is in the code widget below. Click the “Run” button to run the app.
export default "test-file-stub";
Page components
Run the app.
Clicking the “Add new person” button takes the user to a page where a score can be entered against a person. Clicking the “Home” button takes the user back to the home page.
The project contains two tests that verify that these pages render the correct title.
Another copy of the project is in the code widget below. Clicking the “Run” ...
Access this course and 1400+ top-rated courses and projects.