UNPKG

snap-shot-it

Version:

Smarter snapshot utility for Mocha and BDD test runners

128 lines (127 loc) 3.4 kB
{ "name": "snap-shot-it", "description": "Smarter snapshot utility for Mocha and BDD test runners", "version": "7.9.10", "author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", "bugs": "https://github.com/bahmutov/snap-shot-it/issues", "types": "src/index.d.ts", "config": { "pre-git": { "commit-msg": "simple", "pre-commit": [ "npm prune", "npm run deps", "npm run warn-only", "npm test", "echo Testing as if this module was used on CI", "CI=1 npm test", "npm run test-two-specs", "npm run ts-demo", "npm run coffee-demo", "git add src/*.js", "npm run ban" ], "pre-push": [ "npm run stop-only", "npm run license", "npm run ban -- --all", "npm run size" ], "post-commit": [], "post-merge": [] } }, "engines": { "node": ">=6" }, "eslintConfig": { "env": { "es6": true }, "rules": { "no-var": 2 } }, "files": [ "src/*.js", "src/*.ts", "!src/*spec.js" ], "homepage": "https://github.com/bahmutov/snap-shot-it#readme", "keywords": [ "bdd", "mocha", "snap-shot", "snapshot", "tdd", "test", "testing" ], "license": "MIT", "main": "src/", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "repository": { "type": "git", "url": "https://github.com/bahmutov/snap-shot-it.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", "named-demo": "cd named-demo; mocha spec*.js", "ts-demo": "cd ts-demo; npm ci; npm test", "coffee-demo": "cd coffee-demo; npm ci; npm test", "postlint": "eslint --fix src/*.js", "prelint": "npm run pretty", "pretest": "npm run lint", "pretty": "prettier-standard 'src/*.js'", "prune-demo": "cd prune-demo; mocha spec.js", "semantic-release": "semantic-release", "size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";", "test-failing-hook": "mocha test/failing-hook", "test-two-specs": "mocha test/two-specs", "test": "npm run unit", "unit": "mocha src/*spec.js", "watch": "npm run unit -- --watch", "stop-only": "stop-only --folder src", "warn-only": "stop-only --folder src --warn" }, "release": { "analyzeCommits": "simple-commit-message" }, "devDependencies": { "ban-sensitive-files": "1.9.18", "dependency-check": "4.1.0", "deps-ok": "1.4.1", "dont-crack": "1.2.1", "eslint": "5.16.0", "eslint-plugin-immutable": "1.0.0", "folktale": "2.3.2", "git-issues": "1.3.1", "license-checker": "25.0.1", "mocha": "6.2.3", "pre-git": "3.17.1", "prettier-standard": "16.4.1", "semantic-release": "^19.0.5", "simple-commit-message": "4.1.3", "standard": "12.0.1", "stop-only": "3.1.2" }, "dependencies": { "@bahmutov/data-driven": "1.0.0", "check-more-types": "2.24.0", "common-tags": "1.8.2", "debug": "4.3.4", "has-only": "1.1.1", "its-name": "1.0.0", "lazy-ass": "1.6.0", "pluralize": "8.0.0", "ramda": "0.28.0", "snap-shot-compare": "3.0.0", "snap-shot-core": "10.2.4" } }