{"_id":"mocha-steps","_rev":"17-25e7e5a786039b45fb3e6ca8442be34e","name":"mocha-steps","time":{"modified":"2022-06-20T01:45:28.603Z","created":"2014-05-22T10:15:17.340Z","0.0.1":"2014-05-22T10:28:08.478Z","1.0.0":"2016-01-21T22:28:39.281Z","1.0.1":"2016-07-11T07:35:10.099Z","1.0.2":"2016-09-26T23:23:42.390Z","1.1.0":"2017-08-02T22:33:04.949Z","1.3.0":"2019-01-05T19:57:03.977Z"},"maintainers":[{"name":"asyncadventures","email":"asyncadventures@gmail.com"}],"description":"Sequential scenarios for Mocha","readme":"# mocha-steps\n\n> Sequential scenarios for Mocha\n\n[![NPM](http://img.shields.io/npm/v/mocha-steps.svg?style=flat-square)](https://npmjs.org/package/mocha-steps)\n[![License](http://img.shields.io/npm/l/mocha-steps.svg?style=flat-square)](https://github.com/TabDigital/mocha-steps)\n\n[![Build Status](http://img.shields.io/travis/rprieto/mocha-steps.svg?style=flat-square)](http://travis-ci.org/rprieto/mocha-steps)\n\n[![Dependencies](http://img.shields.io/david/rprieto/mocha-steps.svg?style=flat-square)](https://david-dm.org/rprieto/mocha-steps)\n[![Dev dependencies](http://img.shields.io/david/dev/rprieto/mocha-steps.svg?style=flat-square)](https://david-dm.org/rprieto/mocha-steps)\n\n\nGlobal `step()` function, as a drop-in replacement for `it()`. Any failing `step` will abort the parent `describe` immediately. This is handy for BDD-like scenarios, or smoke tests that need to run through specific steps.\n\n### Setup\n\n```bash\nnpm install mocha-steps --save-dev\n```\n\nThen simply run mocha with `--require mocha-steps`.\n\n### Example\n\n```js\ndescribe('my smoke test', function() {\n\n  step('login', function() {\n  });\n\n  step('buy an item', function() {\n    throw new Error('failed');\n  });\n\n  step('check my balance', function() {\n  });\n\n  xstep('temporarily ignored', function() {\n  });\n\n});\n```\n\n- With the standard it()\n\n```\nmy smoke test\n   ✓ login\n   ✗ buy an item\n   ✓ check my balance\n   - temporarily ignored\n```\n\n- Using step()\n\n```\nmy smoke test\n   ✓ login\n   ✗ buy an item\n   - check my balance\n   - temporarily ignored\n```\n\n### Notes\n\n- Unlike Mocha's `--bail` option, the rest of the test suite will run normally.\n- `step()` works with synchronous, async, event-based and promise tests.\n\nWhen submitting a PR, please run `./test.sh` and implement new test cases if required.\n","versions":{"0.0.1":{"name":"mocha-steps","version":"0.0.1","description":"Sequential scenarios for Mocha","author":{"name":"Romain Prieto"},"keywords":["mocha","step","test","bdd","scenarios","sequence"],"license":"MIT","main":"lib/step.js","scripts":{"test":"./node_modules/.bin/mocha"},"repository":{"type":"git","url":"git://github.com/rprieto/mocha-steps.git"},"bugs":{"url":"https://github.com/rprieto/mocha-steps/issues"},"devDependencies":{"mocha":"~1.19.0"},"_id":"mocha-steps@0.0.1","dist":{"shasum":"6852f4cc60397936a1a2de046ec5a1dffad2e08e","tarball":"https://registry.npmjs.org/mocha-steps/-/mocha-steps-0.0.1.tgz","integrity":"sha512-6CNOGNOWt4hxfU+ieCIBkqwt6HTJNpfxxJiyvutcxBQ9VQk6kzlI5PsU0gM80iqKIXxT/IRWroLUUK7sPOinEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+Tu2Dc8IC5R4rWbK2+IKTkSsaDV9E/eEG+YJRvqYFrAIhAOHMUWqIOmziuZcrzOWBup2Mn+1L4DVgz6FCjKuX2uv3"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"rprieto","email":"romain@asyncdev.net"},"maintainers":[{"name":"rprieto","email":"romain@asyncdev.net"}],"directories":{}},"1.0.0":{"name":"mocha-steps","version":"1.0.0","description":"Sequential scenarios for Mocha","author":{"name":"Romain Prieto"},"keywords":["mocha","step","test","bdd","scenarios","sequence"],"license":"MIT","main":"lib/step.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rprieto/mocha-steps.git"},"bugs":{"url":"https://github.com/rprieto/mocha-steps/issues"},"devDependencies":{"mocha":"^2.3.4"},"gitHead":"e88a06f03febfc54a5322f93a6c560f2ec0ff570","homepage":"https://github.com/rprieto/mocha-steps#readme","_id":"mocha-steps@1.0.0","_shasum":"f63e0623344d8f2cb68b74f9a1951ce1c0651792","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"rprieto","email":"romain@asyncdev.net"},"maintainers":[{"name":"rprieto","email":"romain@asyncdev.net"}],"dist":{"shasum":"f63e0623344d8f2cb68b74f9a1951ce1c0651792","tarball":"https://registry.npmjs.org/mocha-steps/-/mocha-steps-1.0.0.tgz","integrity":"sha512-V4Oc1sUv8cMNA5hFkVYAj4XzrcY+YoGT2wJJ8WOrJTsJ0e0CQvoo4/wXX3ogTmculwTMPE8XRLeIB1FCYDy+NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDvccWruxodLnkoyQG6pzF7EXPcMgXkfP7+FyS9h8iaAiBExc7Yw1kr5q4jWb0uMFu2mjmhP0qRLCH0K11KUKY5HQ=="}]},"directories":{}},"1.0.1":{"name":"mocha-steps","version":"1.0.1","description":"Sequential scenarios for Mocha","author":{"name":"Romain Prieto"},"keywords":["mocha","step","test","bdd","scenarios","sequence"],"license":"MIT","main":"lib/step.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rprieto/mocha-steps.git"},"bugs":{"url":"https://github.com/rprieto/mocha-steps/issues"},"devDependencies":{"mocha":"^2.3.4"},"gitHead":"2641440903d4fe33bffeb991476936e4cfdf7769","homepage":"https://github.com/rprieto/mocha-steps#readme","_id":"mocha-steps@1.0.1","_shasum":"d930318cb7965bc1f5df1ecb68ca7f4e716c3b59","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"rprieto","email":"romain@asyncdev.net"},"dist":{"shasum":"d930318cb7965bc1f5df1ecb68ca7f4e716c3b59","tarball":"https://registry.npmjs.org/mocha-steps/-/mocha-steps-1.0.1.tgz","integrity":"sha512-fnq8eE8iCExv1mtHqsyv3sWAoPHOgB6nQrMOfL7QlaGU5xA3Rh8VkPqudj/KjGfJ+4ljJ6FfTQK2YJGp5K/7sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpxdcVePUDebjg2TC91fzNw9gwq7Y34xCdAxEPRyrwfwIhAIIZZUofjjmLqgjuP2ThAXdOnWJiTvXI3F2GOCtHqiof"}]},"maintainers":[{"name":"rprieto","email":"romain@asyncdev.net"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mocha-steps-1.0.1.tgz_1468222507287_0.6233987382147461"},"directories":{}},"1.0.2":{"name":"mocha-steps","version":"1.0.2","description":"Sequential scenarios for Mocha","author":{"name":"Romain Prieto"},"keywords":["mocha","step","test","bdd","scenarios","sequence"],"license":"MIT","main":"lib/step.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rprieto/mocha-steps.git"},"bugs":{"url":"https://github.com/rprieto/mocha-steps/issues"},"devDependencies":{"mocha":"^2.3.4"},"gitHead":"cfa6579e507952d220b9d09d4ec322c6a435cce7","homepage":"https://github.com/rprieto/mocha-steps#readme","_id":"mocha-steps@1.0.2","_shasum":"5354945edba38651919e7b5d057e615da3c06436","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"rprieto","email":"romain@asyncdev.net"},"dist":{"shasum":"5354945edba38651919e7b5d057e615da3c06436","tarball":"https://registry.npmjs.org/mocha-steps/-/mocha-steps-1.0.2.tgz","integrity":"sha512-sFO288pupnEtkuI8Vygyuq5yKK8/ca/SBugRsl8QJE+fhLiucDOxulJrkL5oqs2Pa9EXzxif9VWT5AGVFjePfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJk7VhG2s+5rLBHUeUYxlDA5rO0mald7Kp0nUPMhsVmgIgdl+A06ABOLQO6rDaKZAfOppqI/FyPihdTqzu26WYMek="}]},"maintainers":[{"name":"rprieto","email":"romain@asyncdev.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mocha-steps-1.0.2.tgz_1474932222173_0.2509748244192451"},"directories":{}},"1.1.0":{"name":"mocha-steps","version":"1.1.0","description":"Sequential scenarios for Mocha","author":{"name":"Romain Prieto"},"keywords":["mocha","step","test","bdd","scenarios","sequence"],"license":"MIT","main":"lib/step.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rprieto/mocha-steps.git"},"bugs":{"url":"https://github.com/rprieto/mocha-steps/issues"},"devDependencies":{"mocha":"^2.3.4"},"gitHead":"e4655786a55d9c8e3c369996f34f52282dac0073","homepage":"https://github.com/rprieto/mocha-steps#readme","_id":"mocha-steps@1.1.0","_shasum":"40bab89157ef45bb025481ca6f316d06983f2df0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"asyncadventures","email":"asyncadventures@gmail.com"},"dist":{"shasum":"40bab89157ef45bb025481ca6f316d06983f2df0","tarball":"https://registry.npmjs.org/mocha-steps/-/mocha-steps-1.1.0.tgz","integrity":"sha512-1dj9WDkPYVXfiVGGjPUzl/BOVTBJTfDRQyOzEaaMSUDDc16EudpIuc3wzm2ZKwV7D0tvfmyEJsWwXOpclbiLTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkjoBkgI/cHMRsjEfwpN5gzIL5+FmtcXO/rn6PIvHFmgIhAPnIjRcg4RXEBYD4GBSqIE5eQU/bWqgjiodMyu1qdCfX"}]},"maintainers":[{"name":"asyncadventures","email":"asyncadventures@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-steps-1.1.0.tgz_1501713184872_0.632389857666567"},"directories":{}},"1.3.0":{"name":"mocha-steps","version":"1.3.0","description":"Sequential scenarios for Mocha","author":{"name":"Romain Prieto"},"keywords":["mocha","step","test","bdd","scenarios","sequence"],"license":"MIT","main":"lib/step.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rprieto/mocha-steps.git"},"bugs":{"url":"https://github.com/rprieto/mocha-steps/issues"},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.12.18","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"^3.2.2"},"types":"lib/mocha-steps.d.ts","gitHead":"160c622501feee25792d7ba829b8d2c922676751","homepage":"https://github.com/rprieto/mocha-steps#readme","_id":"mocha-steps@1.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"asyncadventures","email":"asyncadventures@gmail.com"},"dist":{"integrity":"sha512-KZvpMJTqzLZw3mOb+EEuYi4YZS41C9iTnb7skVFRxHjUd1OYbl64tCMSmpdIRM9LnwIrSOaRfPtNpF5msgv6Eg==","shasum":"2449231ec45ec56810f65502cb22e2571862957f","tarball":"https://registry.npmjs.org/mocha-steps/-/mocha-steps-1.3.0.tgz","fileCount":5,"unpackedSize":4839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcMQwQCRA9TVsSAnZWagAAZswP/0RKculLFyEnRVk9JdDN\niKD0mWaSu9kOzrG2o/3encAoWahiIdAz5F7zLaRElOUbhTRJHkGwYJQjFzGH\nrdsh3QdA+OdhX4VNibq2e+s2363An3Q/FmflQUeeizJQErspEffQrnn3C1ay\nFHXUfdao5Q0YfKyDvwwpVe8yOuPXrFc49M7gICZvYieGRSI4dZd2jaxLefeD\nC6aXD2MVlbWYU7qgagFCNWvujNNEbJDEqi6hci1BoDGpjjaOTD+PCv8mi6w0\nrdw30rJRbbSsz6n+7xI8PMKM+VzZpEVh5szsky7qaLitZeBkU+jDNvxIda7T\nxDrZXaeO4fhJdz6faCxJ5/ErkfQK7y45+XHonL57v/ZAj7VuFt2Lg25cvziZ\nJb/INmauHze5t+LwNHgqTaM93qvpCPTAel6u2L0PGpApXQqPy5YINa5Xxk1s\nxMQ6odJwfBOQcKzSInsRE/G75VYgfIxYR1Xfv7y/4x5im6EOFqzrHQY5BGQd\n+h0698uFg42m1gMV/1zX0i0eDliufjct9V3lN4oud0WGhV5Gb+TvHXJpMB0I\n9nlxPlqTRamj+NvulRa5t6YihoBc0Wa7p1P1L/4zG2nAmSN7LYqqYOqkDNLw\nZp+EZpZK5qCs7eq2jGO/4D/NupFFOTKO2wqAZzYkZ6m+32nzDbpgs1KzPbY5\nTJ11\r\n=LA8F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsibyvbiBDAfG1oC3P7GHaotqTjbNoS2vyOwgqDThNoAiEA8HowN3Vrn01hmlEgkqzUsxe7LAWX+18xkZV2tjkTeeg="}]},"maintainers":[{"name":"asyncadventures","email":"asyncadventures@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-steps_1.3.0_1546718223853_0.9391314554614447"},"_hasShrinkwrap":false}},"dist-tags":{"latest":"1.3.0"},"readmeFilename":"README.md","keywords":["mocha","step","test","bdd","scenarios","sequence"],"repository":{"type":"git","url":"git://github.com/rprieto/mocha-steps.git"},"author":{"name":"Romain Prieto"},"bugs":{"url":"https://github.com/rprieto/mocha-steps/issues"},"license":"MIT","homepage":"https://github.com/rprieto/mocha-steps#readme","users":{"firefoxnx":true,"ngpvnk":true}}