matijaabicic/Moubot

Add a test framework

Closed this issue · 3 comments

d48 commented

I recommend adding some unit test framework and start creating assertions on the src files in the repo. Look into https://www.npmjs.com/package/tape or https://www.npmjs.com/package/mocha

Added Mocha, building tests as I go now.

d48 commented

Awesome. I would add to the .gitignore file:

node_modules/

It's common to not include this directory in the git repo so that it doesn't bloat the project. People can do an npm install to download the dependencies in the package.json file

Good point, thx!