Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 2.1 KB

README.md

File metadata and controls

69 lines (49 loc) · 2.1 KB

Test-Driven JavaScript Development Book

Code & personal notes of the book Test Driven JavaScript Development by Christian Johansen.

Book site

https://www.tddjs.com/

Summaries

Tests

Install Mocha.js globally

npm install --global mocha

Run xUnit specs

Only for chapters 1 and 2. Ignores the usage of mocha command

npm run test:spec

Run Mocha tests

npm run test

Benchmarks

Loops (Chapter 04):

npm run bench:loops

Fibonacci (Chapter 06):

npm run bench:fibonacci

Loops with timeout (Chapter 06):

node ./06-applied-functions-and-closures/benchmarks/loops-timeout.js