A collection of tasks to solve using TypeScript and TDD (Test Driven Development). Test cases are included for each task. Solutions and step by step guides for each task can be found in the Wiki.
This repository has been designed for intermediate developers who would like to become more familiar with TypeScript. Simply fork/clone to your local machine then navigate to the folder of your chosen task. Run the tests yarn test
. All tests will fail in their initial state. Your objective is to write code that makes all the tests pass. As we progress through the tasks, we will also look at writing tests from scratch using Jest.
Happy hacking :)
These instructions will get you a copy of the project up and running on your local machine.
To get up and running, you will need the following tools.
To write and test code you will need NodeJS and Yarn installed. If your on a Mac, use Homebrew for installation.
brew install node
brew install yarn
Will also need TypeScript installed.
npm install -g typescript
Change to the root directory and install required packages.
yarn
Tests can be run globally from the root directory by running yarn test
.
yarn test
Alternatively for running running tests specific to a given task, the description inside the describe
block can be used.
yarn test -t "<task-description>"
If you at any you point get stuck, step by step solutions for each task can be found in the Wiki.
- Theodore Jones - MrKiplin