Help me write some tests
Right now Iris has pretty limited tests since I have been more focused
on developing features and making sure everything was working properly.
Now the time has come to set up some automated tests to guarantee that everything works the way it should
What you need to know
- At the moment Iris is configured to use Vitest
- I'm open to using a different testing framework if there is a good reason to
- I am less concerned with unit tests and more so with integration and end-to-end tests
- Before running tests you need to go into the tsconfig.json file and change the "jsx" value from "preserve" to "react"
What needs to be tested
- The user is served random exercises.
- The user is not served the same exercise more than once per day.
- Speed tests change the correct values in the user's information.
- The user's information is saved properly after it has been edited in the "settings" page
Help me write some tests
Right now Iris has pretty limited tests since I have been more focused
on developing features and making sure everything was working properly.
Now the time has come to set up some automated tests to guarantee that everything works the way it should
What you need to know
What needs to be tested