diff --git a/package.json b/package.json index a2bec32..2cece91 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,11 @@ "description": "Zen sonos project", "main": "index.js", "scripts": { - "pretest": "if [ ! -f 'config/config.json' ]; then cp 'config/config.json.example' 'config/config.json'; fi" + "pretest": "if [ ! -f 'config/config.json' ]; then cp 'config/config.json.example' 'config/config.json'; fi", + "test": "mocha --reporter spec", + "cover": "npm run pretest; node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- --opts test/mocha.opts test/* -R spec", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "sonos",