Skip to content

Commit a56a1b5

Browse files
dgolovinjrichter1
authored andcommitted
Add ability to debug tests
Add ``` JavaScript debugger; ``` line in your tests where you want to start debugging and run ``` Shell npm run debug-test test/unit/ ``` Then open url printed in stdout in browser and hit run button in Devtools toolbar.
1 parent 9db2d77 commit a56a1b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"package-simple": "./node_modules/.bin/gulp package-simple",
2222
"coverage:publish": "codecov",
2323
"dist": "./node_modules/.bin/gulp dist",
24+
"debug-test": "NODE_PATH=. node node_modules/.bin/mocha --inspect --debug-brk --compilers=js:babel-core/register --recursive",
2425
"test": "./node_modules/.bin/gulp test",
2526
"ui-test": "./node_modules/.bin/gulp ui-test",
2627
"system-test": "./node_modules/.bin/gulp system-test",

0 commit comments

Comments
 (0)