Exercise: Types of Components
This exercise will allow you to put into practice what you have learned so far in this course.
We'll cover the following...
The starter project contains an app that allows a user to view and add notes.
The project already contains some tests. In this exercise, you’ll add additional tests to the following components and custom hooks:
-
HomePage
-
NewNotePage
-
useNoteField
-
useGetNotes
-
useSaveNote
Skeleton code is given below:
export default "test-file-stub";
Testing playground
HomePage
tests
The tests on the HomePage
component should verify the following:
-
The correct page title is ...