commit 03153a3b6df9d0a14523fc2f751b356f01a0b363
parent 200c229e4eb8995dc8d92065d5a223a300299ce3
Author: Pepijn Senders <PepijnSenders@users.noreply.github.com>
Date: Tue, 17 May 2016 19:45:34 +0200
Update test scripts to fix an issue with glob arguments (#656)
- Add quotes to mocha glob
- Change watcher to extend from the regular test call
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
@@ -149,8 +149,8 @@
"jscs": "jscs src tools --verbose",
"stylelint": "stylelint \"src/**/*.scss\" --syntax scss",
"lint": "npm run eslint && npm run jscs && npm run stylelint",
- "test": "mocha src/**/*.test.js --require test/setup.js --compilers js:babel-register",
- "test:watch": "mocha src/**/*.test.js --require test/setup.js --compilers js:babel-register --reporter min --watch",
+ "test": "mocha 'src/**/*.test.js' --require test/setup.js --compilers js:babel-register",
+ "test:watch": "npm run test -- --reporter min --watch",
"clean": "babel-node tools/run clean",
"copy": "babel-node tools/run copy",
"bundle": "babel-node tools/run bundle",