Skip to content

Commit 284b44d

Browse files
authored
Merge pull request #8322 from stieg/improve-tests
build(test) Improve test target
2 parents 5c04b5d + 9e31710 commit 284b44d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"lint": "eslint .",
7474
"release": "git pull && git push origin master --tags && npm publish",
7575
"release-legacy": "git pull origin 4.x && git push origin 4.x --tags && npm publish --tag legacy",
76-
"test": "mocha --exit test/*.test.js test/**/*.test.js",
76+
"test": "mocha --exit",
7777
"test-cov": "nyc --reporter=html --reporter=text npm test"
7878
},
7979
"main": "./index.js",
@@ -142,6 +142,10 @@
142142
"message": "Don't use Mocha's global context"
143143
}
144144
]
145+
},
146+
"mocha": {
147+
"extension": ["test.js"],
148+
"watch-files": ["test/**/*.js"]
145149
}
146150
}
147151
}

0 commit comments

Comments
 (0)