Solutions for 2022 Advent Of Code challenges in TypeScript
Install proper nodejs version via asdf:
$ asdf install
or simply check needed nodejs version in .tool-versions file.
if you want to enable yarn you should do it via corepack:
corepack enable yarn
using asdf a reshim could be needed:asdf reshim nodejs
Install project dependencies:
$ yarn install
and run tests via jest:
$ yarn jest
Use temporary node container with current directory volume:
$ docker run --rm -it -v $PWD:/app -w /app node:16.18.1-slim bash
# yarn install
# yarn jest
check used node version in .tool-versions