instructions: https://github.com/theneubeck/tdd-blog-instructions
- You can only run your code with tests
- Take turns. One person writes a test - The other writes the code.
- Always write the test first
This repo uses nvm and depends on node 17
# some commands
npm install
npm tests
npx mocha tests/basic-test.js
npx mocha tests/basic-test.js -g 'should say 200'
To force only one test running:
it.only("should say 200 ok", () => { /* test code */ })
dont forget to remove it later
Libs used:
if mocking out third parties: https://github.com/nock/nock