Run all test/*.test.js files (#501)

Somehow, upgrading either mocha or nyc (?) appears to make
the current test command skip test/bot-events.test.js.
I do not know why, but quoting it (so mocha globs it
instead) seems to fix this.

(This happened between 2.7.0 and 2.7.1.)
This commit is contained in:
Edward Jones 2019-08-05 20:21:26 -03:00 committed by GitHub
parent 4196726799
commit c9ccd7b473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@
"build": "babel lib --out-dir dist",
"prepare": "npm run build",
"lint": "eslint . --ignore-path .gitignore",
"coverage": "nyc --require babel-core/register _mocha -- test/*.test.js",
"coverage": "nyc --require babel-core/register _mocha -- 'test/*.test.js'",
"report": "nyc report --reporter=text-lcov | coveralls",
"test": "npm run lint && npm run coverage"
},