Skip to content

Commit ee7c2eb

Browse files
author
Peter Svetlichny
committed
feat(binci): add test:watch task
1 parent 7fee810 commit ee7c2eb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

binci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ tasks:
2626
test: |
2727
node ./scripts/postgres_conn.js
2828
yarn run test
29+
test:watch: |
30+
node ./scripts/postgres_conn.js
31+
yarn run test:watch
2932
cover: |
3033
node ./scripts/postgres_conn.js
3134
yarn run cover

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"author": "TechnologyAdvice <devteam@technologyadvice.com>",
1919
"scripts": {
2020
"test": "yarn run lint && yarn run cover",
21+
"test:watch": "nodemon --exec \"./node_modules/.bin/mocha ./test/src || exit 1\"",
2122
"clean": "rm -rf ./node_modules rm -rf ./build",
2223
"mocha": "mocha ./test/src --recursive",
2324
"cover": "istanbul cover ./node_modules/.bin/_mocha ./test/src",

0 commit comments

Comments
 (0)