Test Driven Development Example in TypeScript using Jest.
- Fork or clone this repository by running
git clone https://github.com/nunogois/typescript-jest-tdd.git
in a folder of your choice; - Run
npm install
oryarn
on the created project folder to install pre-requisites; - Run our tests:
npm test
oryarn test
and check the results - it should also create a coverage folder with a report index.html that you can open in your browser;
I'm still getting used to TypeScript, Jest and TDD in general. If you spot any errors or possible improvements, please let me know!