Simple environment for solving coding challenges.
It's recommended to use node version manger (ie. fnm), for easier switching between different projects.
# Install dependencies
npm ci
# Start tests in watch mode
npm run test
Summary of defined npm scripts.
Script | Description |
---|---|
test |
run tests in watch mode |
test:run |
run tests once |
test:types |
validates TS types |
test:format |
validates code formatting |
test:lint |
validates linting rules |
Script | Description |
---|---|
check:types |
validates TS types |
check:format |
validates code formatting |
check:lint |
validates linting rules |
Script | Description |
---|---|
fix:format |
tries to fix formatting |
fix:lint |
tries to fix linter issues |