Mobrovac has submitted this change and it was merged.
Change subject: Add nsp check to 'npm test' command
......................................................................
Add nsp check to 'npm test' command
The nsp [node security platform] module provides a way to check a
project's node modules for known vulnerabilities.
Adding an nsp check to our regular test suite will help us keep abreast
of vulnerabilities and make changes immediately when necessary.
Change-Id: I1de849c91119b9d6aa6b7a4c76e5e30b418aa16a
---
M package.json
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Mobrovac: Looks good to me, approved
jenkins-bot: Verified
diff --git a/package.json b/package.json
index 59aa6fe..cae2f66 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"main": "./app.js",
"scripts": {
"start": "service-runner",
- "test": "mocha",
+ "test": "mocha && nsp check",
"docker-start": "service-runner docker-start",
"docker-test": "service-runner docker-test",
"coverage": "istanbul cover _mocha -- -R spec"
@@ -59,6 +59,7 @@
"mocha": "^2.5.3",
"mocha-jshint": "^2.3.1",
"mocha-lcov-reporter": "^1.2.0",
+ "nsp": "^2.6.1",
"sepia": "^2.0.1"
},
"deploy": {
--
To view, visit https://gerrit.wikimedia.org/r/299183
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1de849c91119b9d6aa6b7a4c76e5e30b418aa16a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Dbrant <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Jhernandez <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits