cognovi-ai / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
4 stars 0 forks source link

Add unit tests. #140

Open hiyaryan opened 6 months ago

hiyaryan commented 6 months ago

Due to #16 taking too much time to resolve, unit tests were backlogged so that the first iteration of the project could be implemented. Since I was the sole developer working on this project, I could easily manually test the project within my own work flow. Now that the prjoect is growing, #16 should be resolved. Going forward, unit tests should be written with every new addition of code.

Using Jest, write unit tests for the backend and frontend. Use Copilot and ChatGPT to assist in analyzing and writing tests. Aim for 95% coverage. Add tests to /tests in backend, and create new directory, /tests, in frontend. Organize the directories to mirror that of /src.