TypeScript solutions for the Advent of Code 2022 puzzles.
https://adventofcode.com/2022/
Solutions favor readability and testability over performance or conciseness.
You can validate puzzle solutions by running Jest tests.
Prerequisites:
- Install Node 18 or later
- Enable Node's Corepack feature:
corepack enable
- Install dependencies:
yarn install
Run tests for all puzzles:
yarn test
Run tests for a specific puzzle:
yarn test -t q1
- Language: TypeScript 4.9
- Environment: Node 18
- Package manager: Yarn 3 (with PnP)
- Testing framework: Jest