Skip to content

Commit

Permalink
chore: provide test config in mocha.opts
Browse files Browse the repository at this point in the history
Move custom options for invoking mocha to a dedicated `mocha.opts` file
and cleanup `package.json` scripts targets.
  • Loading branch information
macedigital committed Jun 21, 2018
1 parent d4567f4 commit dcc9488
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"homepage": "https://github.com/macedigital/gulp-sri-hash#readme",
"scripts": {
"pretest": "eslint .",
"lint": "eslint .",
"pretest": "npm run lint",
"preversion": "git stash && npm test",
"postversion": "git push && git push --tags && git stash pop",
"test": "mocha test",
Expand Down
5 changes: 5 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--reporter dot
--check-leaks
--throw-deprecation
--forbid-only
--forbid-pending

0 comments on commit dcc9488

Please sign in to comment.