Skip to content

grantralls/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022

written in Typescript using Node

Running Tests

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.

  1. Install nvm
  2. Use the terminal to navigate to the root folder of this repo
  3. Run nvm use to use the node version specified in the .nvmrc
  4. cd into the solution directory of choice
  5. Install the dependencies with npm i
  6. Run the test with npm run test

Running Solutions

Each folder is an individual node program duplicated from Day-template. To run a solution do the following.

  1. Install nvm
  2. Use the terminal to navigate to the root folder of this repo
  3. Run nvm use to use the node version specified in the .nvmrc
  4. cd into the solution directory of choice
  5. Install the dependencies with npm i
  6. Run npm run start

About

My Advent of Code solutions for 2022

Topics

Resources

Stars

Watchers

Forks