jacobrosenthal / node-newtmgr

Unofficial port of Apache mynewt newt manager newtmgr
6 stars 4 forks source link

CI jshint and tests #7

Open jacobrosenthal opened 7 years ago

jacobrosenthal commented 7 years ago

npm i --save-dev jshint

add pretest to scripts

  "scripts": {
    "pretest": "jshint *.js lib/. test/.",
    "test": "mocha --include test/*.js test/*.js --reporter spec"
  },

commit that and then make npm run test pass in a seperate commit

then ill enable Continuous integration to run npm run test every time someone makes a commit and we can catch formatting style and errors