UNPKG

@smpx/snap-shot-it

Version:

Smarter snapshot utility for Mocha and BDD test runners

132 lines (131 loc) 3.51 kB
{ "name": "@smpx/snap-shot-it", "description": "Smarter snapshot utility for Mocha and BDD test runners", "version": "6.6.1", "author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", "bugs": "https://github.com/smartprix/snap-shot-it/issues", "types": "src/index.d.ts", "config": { "pre-git": { "commit-msg": "simple", "pre-commit": [ "npm prune", "npm run deps", "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", "npm run chunked-demo", "git add src/*.js", "npm run ban" ], "pre-push": [ "npm run license", "npm run ban -- --all", "npm run size" ], "post-commit": [], "post-merge": [] } }, "engines": { "node": ">=6" }, "eslintConfig": { "env": { "es6": true }, "plugins": [ "immutable" ], "rules": { "no-var": 2, "immutable/no-let": 2, "immutable/no-this": 2, "immutable/no-mutation": 2 } }, "files": [ "src/*.js", "src/*.ts", "!src/*spec.js" ], "homepage": "https://github.com/smartprix/snap-shot-it#readme", "keywords": [ "bdd", "mocha", "snap-shot", "snapshot", "tdd", "test", "testing" ], "license": "MIT", "main": "src/", "publishConfig": { "registry": "http://registry.npmjs.org/", "access": "public" }, "repository": { "type": "git", "url": "https://github.com/smartprix/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", "chunked-demo": "cd chunked-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", "travis-deploy-once": "travis-deploy-once", "unit": "mocha src/*spec.js", "watch": "npm run unit -- --watch" }, "release": { "analyzeCommits": "simple-commit-message" }, "devDependencies": { "ban-sensitive-files": "1.9.2", "common-tags": "1.8.0", "dependency-check": "3.3.0", "deps-ok": "1.4.1", "dont-crack": "1.2.1", "eslint": "5.16.0", "eslint-plugin-immutable": "1.0.0", "git-issues": "1.3.1", "lazy-ass": "1.6.0", "license-checker": "24.1.0", "mocha": "5.2.0", "pre-git": "3.17.1", "prettier-standard": "8.0.1", "semantic-release": "15.13.3", "simple-commit-message": "4.0.3", "standard": "11.0.1", "travis-deploy-once": "5.0.11" }, "dependencies": { "@bahmutov/data-driven": "1.0.0", "check-more-types": "2.24.0", "debug": "4.1.1", "has-only": "1.1.1", "pluralize": "7.0.0", "ramda": "0.26.1", "snap-shot-compare": "2.7.1", "@smpx/snap-shot-core": "^7.3.0" } }