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
3 stars 0 forks source link

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

Closed hiyaryan closed 4 weeks ago

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