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

139 Initial TS Migration, Setup TS Jest, and Update ESLint #156

Closed hiyaryan closed 3 months ago

hiyaryan commented 3 months ago

This PR sets up the initial TS Jest testing environment and uses mongodb-memory-server. The following changes were made (also in commit body) in order to allow Jest to understand TypeScript. A test has been made for index.ts that itself tests this setup. Additionally, some minor changes have been added, adding/updating comments in the files worked on and including a graceful shutdown in index.ts.

hiyaryan commented 3 months ago

Overall it's looking really good! Great job! The main thing is I want to make sure we understand what the babel typescript preset does and doesn't do, and confirm that it fits our needs. The rest of the review is a couple of questions I had and edits I think would be helpful.

Awesome! Thank you for the reviews @davidzlu. I should have resolved and responded to all of them. Most importantly, I added type checking to the tests and removed that pesky extra whitespace. Please have a look and let me know what you think!