hiyaryan / 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 distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
2 stars 0 forks source link

Add unit tests. #140

Open hiyaryan opened 1 month ago

hiyaryan commented 1 month 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.