Skip to content

Commit 35e649a

Browse files
committed
mocha tests unfortch can't rely on globbing
1 parent 5572aab commit 35e649a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lighthouse-core/scripts/run-mocha.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
flag=$1
44

55
function _runmocha() {
6-
mocha $2 $__node_harmony $1/**/*-test.js --timeout 60000;
6+
mocha $2 $__node_harmony $(find $1/test -name '*-test.js') --timeout 60000;
77
}
88

99
if [ "$flag" == '--watch' ]; then

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"lint": "[ \"$CI\" = true ] && eslint --quiet . || eslint .",
1212
"smoke": "lighthouse-cli/scripts/run-smoke-tests.sh",
13-
"coverage": "node $__node_harmony $(npm bin)/istanbul cover -x \"**/third_party/**\" _mocha -- $(find */test -name '*.js' -not -path '*/fixtures/*') --timeout 60000 --reporter progress",
13+
"coverage": "node $__node_harmony $(npm bin)/istanbul cover -x \"**/third_party/**\" _mocha -- $(find */test -name '*-test.js') --timeout 60000 --reporter progress",
1414
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls",
1515
"start": "node ./lighthouse-cli/index.js",
1616
"test": "npm run lint --silent && npm run unit && npm run closure",

0 commit comments

Comments
 (0)