In the last lesson, we learned how to set up Vitest in our project and wrote a simple test to check the square root of a number. In this lesson, we’re going to build out our notification component and test that it works as intended.
To focus on testing, I’ve already built our component. You can copy the code for the component below or from the GitHub repository in the lesson resources.
Let’s create a new file in our components folder called NotificationToast.vue
and add the following code to it:
**📁src/components/Notifica