UNPKG

find-test-caller

Version:

Finds the caller test function that called this library by inspecting the source file

94 lines 2.37 kB
{ "name": "find-test-caller", "description": "Finds the caller test function that called this library by inspecting the source file", "version": "1.0.2", "author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", "bugs": "https://github.com/bahmutov/find-test-caller/issues", "config": { "pre-git": { "commit-msg": "simple", "pre-commit": [ "npm prune", "npm run deps", "npm test", "npm run ban" ], "pre-push": [ "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/find-test-caller#readme", "keywords": [ "ast", "caller", "find", "parent", "test", "unit" ], "license": "MIT", "main": "src/", "publishConfig": { "registry": "http://registry.npmjs.org/" }, "repository": { "type": "git", "url": "https://github.com/bahmutov/find-test-caller.git" }, "scripts": { "ban": "ban", "deps": "deps-ok", "issues": "git-issues", "license": "license-checker --production --onlyunknown --csv", "lint": "standard --verbose --fix src/*.js", "pretest": "npm run lint", "secure": "nsp check", "size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";", "test": "npm run unit", "unit": "mocha src/*-spec.js", "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "devDependencies": { "ban-sensitive-files": "1.9.0", "dependency-check": "2.8.0", "deps-ok": "1.2.0", "dont-crack": "1.1.1", "git-issues": "1.3.1", "license-checker": "8.0.4", "mocha": "3.2.0", "nsp": "2.6.2", "pre-git": "3.14.0", "semantic-release": "6.3.2", "simple-commit-message": "3.0.2", "standard": "8.6.0" }, "release": { "analyzeCommits": "simple-commit-message", "verifyRelease": { "path": "dont-crack", "test-against": [ "https://github.com/bahmutov/snap-shot", "https://github.com/bahmutov/schema-shot" ] } }, "dependencies": { "check-more-types": "2.23.0", "debug": "2.6.1", "falafel": "2.0.0", "lazy-ass": "1.5.0" } }