{"name":"gulp-mocha","version":"6.0.0","description":"Run Mocha tests","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/gulp-mocha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js","utils.js"],"keywords":["gulpplugin","mocha","test","testing","unit","framework","runner","tdd","bdd","qunit","spec","tap"],"dependencies":{"dargs":"^5.1.0","execa":"^0.10.0","mocha":"^5.2.0","npm-run-path":"^2.0.2","plugin-error":"^1.0.1","supports-color":"^5.4.0","through2":"^2.0.3"},"devDependencies":{"ava":"*","gulp":"^3.9.1","p-event":"^1.0.0","vinyl":"^2.1.0","xo":"*"},"gitHead":"cde8dc29af0caae213c690cb56eaae004555a305","bugs":{"url":"https://github.com/sindresorhus/gulp-mocha/issues"},"homepage":"https://github.com/sindresorhus/gulp-mocha#readme","_id":"gulp-mocha@6.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-FfBldW5ttnDpKf4Sg6/BLOOKCCbr5mbixDGK1t02/8oSrTCwNhgN/mdszG3cuQuYNzuouUdw4EH/mlYtgUscPg==","shasum":"80f32bc705ce30747f355ddb8ccd96a1c73bef13","tarball":"http://registry-npm.ywwl.com/gulp-mocha/download/gulp-mocha-6.0.0.tgz","fileCount":5,"unpackedSize":7632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBaT4CRA9TVsSAnZWagAAT1UQAIqJsaZLALgvhlsjUFd5\nA4wxf6Xy+nnXWC7v8cdOtUSBfWzo/30fEZw3w4/IxCaPHcLauBxY1rwmQvGK\nL0JnFhD6DUHEPEaSdqveUCGr7hI914BUvlVzdHxonsRTIZuOHwTitfMWt2JA\nBTAUT/DPP/r0p4u616qpP5O5xOngAhusDp0gxPYI/3Xy1eSWaO7UuBkz9DWn\nPN1wY66M9ah5+mKC0I1n0MCFTUm6krx9kxOMAxBL/ZS/KLtNI1wNArOtfCwF\ny/FChRmE//77jqFiHNBec0STAGYlYHBDVloPG8Sp7xyOUm7WaaFzijo6+wnc\nyryjNJALMK82Noa3QJOft9jybKGlhzFIR2Wb/1CFYZMaON1406uFBwzGY0vq\nTz3h2e/AaZYHTBcL7Q8nX3lR7XNHRyWhB6adP7/jCEKiOoO/r9FX7TBOjTas\nZIQPR44151099TR37EYxuqeFtmag58Ao3gOL172f497E/OZXS+Ei2L8d4K0A\nzWpRcc7yDn4/plTCI8+rlQPJQ/QeSHG3Oq/LdAaRHd98aTspymmwd+F+XjfY\ngbLeML6npurtHJqG4jY0avmBIREDXPDO6Hl2DCY/S7A8/erRk9izkgSy1hZa\nT1TxKlJJvkJiYRTg+L7yuoGlFXchMRusaGFIzTsOYmGSW/iuSMijLJUH8DDG\nJrI4\r\n=5azl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFy7dAE8WAXQH/ane9BYSEvOTYW9YhaunS/T6ivDqP6wIhAJwzizWFQ/SBg4wq1VTpku1IINR25wit4YAzPIw7XjJ/"}],"size":3744,"noattachment":false,"key":"/gulp-mocha/-/gulp-mocha-6.0.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-mocha_6.0.0_1527096567075_0.2634256947687117"},"_hasShrinkwrap":false,"readme":"# gulp-mocha\n\n> Run [Mocha](https://github.com/mochajs/mocha) tests\n\n*Keep in mind that this is just a thin wrapper around Mocha and your issue is most likely with Mocha.*\n\n## Install\n\n```sh\nnpm install --save-dev gulp-mocha\n```\n\n## Usage\n\n```js\nimport gulp from 'gulp';\nimport mocha from 'gulp-mocha';\n\nexport default () => (\n\tgulp.src('test.js', {read: false})\n\t\t// `gulp-mocha` needs file paths so you cannot have any plugins before it.\n\t\t.pipe(mocha({reporter: 'nyan'}))\n);\n```\n\n## API\n\n### mocha(options?)\n\n#### options\n\nType: `object`\n\nOptions are passed directly to the `mocha` binary, so you can use any its [command-line options](http://mochajs.org/#usage) in a camelCased form. Arrays and key/value objects are correctly converted to the comma separated list format Mocha expects. Listed below are some of the more commonly used options:\n\n##### ui\n\nType: `string`\\\nDefault: `'bdd'`\\\nValues: `'bdd' | 'tdd' | 'qunit' | 'exports'`\n\nThe interface to use.\n\n##### reporter\n\nType: `string`\\\nDefault: `spec`\\\nValues: [Reporters](https://github.com/mochajs/mocha/tree/master/lib/reporters)\n\nThe reporter that will be used.\n\nThis option can also be used to utilize third-party reporters. For example, if you `npm install mocha-lcov-reporter` you can then do use `mocha-lcov-reporter` as value.\n\n##### reporterOptions\n\nType: `object`\\\nExample: `{reportFilename: 'index.html'}`\n\nReporter specific options.\n\n##### globals\n\nType: `string[]`\n\nList of accepted global variable names, example `['YUI']`. Accepts wildcards to match multiple global variables, e.g. `['gulp*']` or even `['*']`. See [Mocha globals option](http://mochajs.org/#globals-option).\n\n##### timeout\n\nType: `number`\\\nDefault: `2000`\n\nTest-case timeout in milliseconds.\n\n##### bail\n\nType: `boolean`\\\nDefault: `false`\n\nBail on the first test failure.\n\n##### checkLeaks\n\nType: `boolean`\\\nDefault: `false`\n\nCheck for global variable leaks.\n\n##### grep\n\nType: `string`\n\nOnly run tests matching the given pattern which is internally compiled to a RegExp.\n\n##### require\n\nType: `string[]`\n\nRequire custom modules before tests are run.\n\n##### compilers\n\nType: `string`\\\nExample: `js:babel-core/register`\n\nSpecify a compiler.\n\n## FAQ\n\n### Test suite not exiting\n\nIf your test suite is not exiting it might be because you still have a lingering callback, most often caused by an open database connection. You should close this connection or do the following:\n\n```js\nexport default () => (\n\tgulp.src('test.js')\n\t\t.pipe(mocha())\n\t\t.once('error', err => {\n\t\t\tconsole.error(err);\n\t\t\tprocess.exit(1);\n\t\t})\n\t\t.once('end', () => {\n\t\t\tprocess.exit();\n\t\t})\n);\n```\n\nOr you might just need to pass the `exit` option:\n\n```js\nexport const test = () => (\n\tgulp.src(['test/**/*.js'], {read: false})\n\t\t.pipe(mocha({reporter: 'list', exit: true}))\n\t\t.on('error', console.error)\n);\n```\n","publish_time":1527096567271,"_cnpm_publish_time":1527096567271,"dist-tags":{"latest":"10.0.1"}}