From 88d2e39befe5d11c78d044d98ba5e82b102ce05f Mon Sep 17 00:00:00 2001 From: Mauro Junior Date: Sat, 6 May 2017 20:33:08 -0300 Subject: [PATCH] feat: added `npm script` to debug tests --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 78cb2e5..160de0d 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,8 @@ "start": "npm run test", "?debug": "Start a debugger for the `main` entry point.", "debug": "babel-node --inspect --debug-brk ./src/index.js", + "?debug:tests": "Start a debugger for the tests", + "debug:tests": "mocha --inspect --debug-brk --compilers js:babel-register ./test/*.js", "precommit": "if-env IGNORE_GHOOKS=true || npm run test", "?commit": "Run a wizard to do a `git commit` following commitizen rules.", "commit": "git add -A && git-cz && git push origin HEAD",