UNPKG

has-only

Version:

Tells if the current Mocha execution is running only some tests that use .only

90 lines (89 loc) 2.34 kB
{ "name": "has-only", "description": "Tells if the current Mocha execution is running only some tests that use .only", "version": "1.1.1", "author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", "bugs": "https://github.com/bahmutov/has-only/issues", "config": { "pre-git": { "commit-msg": "simple", "pre-commit": [ "npm prune", "npm run deps", "npm test", "git add src/*.js", "npm run ban" ], "pre-push": [ "npm run unused-deps", "npm run secure", "npm run license", "npm run ban -- --all", "npm run size" ], "post-commit": [], "post-merge": [] } }, "engines": { "node": ">=6" }, "files": [ "src/*.js", "!src/*-spec.js" ], "homepage": "https://github.com/bahmutov/has-only#readme", "keywords": [ "mocha", "only", "test", "utility" ], "license": "MIT", "main": "src/", "private": false, "publishConfig": { "registry": "http://registry.npmjs.org/" }, "repository": { "type": "git", "url": "https://github.com/bahmutov/has-only.git" }, "scripts": { "ban": "ban", "deps": "deps-ok && dependency-check --no-dev .", "issues": "git-issues", "license": "license-checker --production --onlyunknown --csv", "lint": "standard --verbose --fix src/*.js", "prelint": "npm run pretty", "pretest": "npm run lint", "pretty": "prettier-standard 'src/*.js'", "secure": "nsp check", "size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";", "test": "npm run unit", "unit": "mocha src/*-spec.js", "unused-deps": "dependency-check --unused --no-dev .", "semantic-release": "semantic-release", "travis-deploy-once": "travis-deploy-once" }, "release": { "analyzeCommits": "simple-commit-message" }, "devDependencies": { "ban-sensitive-files": "1.9.2", "dependency-check": "3.1.0", "deps-ok": "1.4.1", "execa-wrap": "1.4.0", "git-issues": "1.3.1", "lazy-ass": "1.6.0", "license-checker": "16.0.0", "mocha": "5.1.1", "nsp": "3.2.1", "pre-git": "3.17.1", "prettier-standard": "8.0.1", "semantic-release": "15.2.0", "simple-commit-message": "4.0.3", "standard": "11.0.1", "travis-deploy-once": "4.4.1" } }