This is the companion repository for the book Build Your Own Test Framework.
Each starting point consists of two directories: concise-test
, which is an NPM package containing a test runner, and todo-example
, which is an example project that has the first package as a dependency.
The five steps are:
- Upgrade to (or install) the latest Node version
- Fork this repo and clone it to your local machine
- Choose the chapter you wish to work on (e.g.
Chapter01
), and then which starting point you need. If you're working through the chapter then itsStart
, or if it's the Practical Exercises, useExercises
. - In a terminal, navigate to your starting point and follow the Link the projects instructions below.
The todo-example
project makes use of this new library you'll be building, so we need to link the two so it can be accessed.
In a terminal, follow these instructions:
cd Chapter01/Start # choose the starting point that you want
cd concise-test
npm link
cd ../todo-example
npm link concise-test
These instructions are also covered in Chapter 1 of the book.