written in Typescript using Node
tests written with Jest
Each solution has a utils folder which contains utils.ts
, utils.test.ts
, and possibly some test input. utils.ts
contains the utility/helper functions used in the final solution. No tests are written for index.ts
therefore the vast majority of the logic lives in a utils function and is tested there.
- Install nvm
- Use the terminal to navigate to the root folder of this repo
- Run
nvm use
to use the node version specified in the .nvmrc cd
into the solution directory of choice- Install the dependencies with
npm i
- Run the test with
npm run test
Each folder is an individual node program duplicated from Day-template
. To run a solution do the following.
- Install nvm
- Use the terminal to navigate to the root folder of this repo
- Run
nvm use
to use the node version specified in the .nvmrc cd
into the solution directory of choice- Install the dependencies with
npm i
- Run
npm run start