{"name":"@northbrook/mocha","description":"Mocha Configuration for Northbrook","version":"2.1.2","author":{"name":"Tylor Steinberger","email":"tlsteinberger167@gmail.com"},"license":"MIT","main":"lib/index.js","typings":"lib/index.d.ts","homepage":"https://github.com/northbrookjs/mocha#readme","bugs":{"url":"https://github.com/northbrookjs/mocha/issues"},"repository":{"type":"git","url":"git+https://github.com/northbrookjs/mocha.git"},"keywords":["mocha","northbrook","plugin","testing"],"dependencies":{"@typed/sequence":"^1.1.0","@types/glob-expand":"0.0.30","@types/mocha":"^2.2.34","@types/node":"^6.0.52","buba":"^4.0.1","glob-expand":"^0.2.1","mocha":"^3.2.0","northbrook":"^4.2.3","simple-spinner":"0.0.5","ts-node":"^1.7.2"},"devDependencies":{"@motorcycle/tslint":"^1.2.0","tslint":"^4.1.1","typescript":"^2.1.4"},"scripts":{"build":"tsc -P tsconfig.build.json","commit":"northbrook commit","preversion":"npm run build --silent","release":"northbrook release","test":"npm run test:lint && ts-node test/northbrook.test.ts","test:lint":"tslint src/**/*.ts src/*.ts"},"gitHead":"8169e0254e2f64945627111ea576647ff9cd1fb0","_id":"@northbrook/mocha@2.1.2","_shasum":"432b4c95100c6f3d2a1c616cb925a28ccbd45c78","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"northbrook","email":"tlsteinberger167@gmail.com"},"dist":{"shasum":"432b4c95100c6f3d2a1c616cb925a28ccbd45c78","tarball":"http://registry-npm.ywwl.com/@northbrook/mocha/download/@northbrook/mocha-2.1.2.tgz","integrity":"sha512-YIhESxNoLYMgta8jrl99I73LUb4tW0Ga/5L4scJ6wMDDNXb6ocRHcUxgjoXU/MHkYiS7v8Muz6ITE/9EFwWnzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBs98auWkDNqm0EppYwotrz17+mofvLI3acth0QwyADAIhAJE9mtW2KB9pmt+lIi+SI/ob4ZEy5dD8h8bsCSy6ksNj"}],"size":10421,"noattachment":false,"key":"/@northbrook/mocha/-/@northbrook/mocha-2.1.2.tgz"},"maintainers":[{"name":"northbrook","email":"tlsteinberger167@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mocha-2.1.2.tgz_1483414178942_0.21405931888148189"},"readme":"# @northbrook/mocha\n\n> Test your packages with Mocha\n\nSeamless testing with Mocha for Northbrook.\nHandles TypeScript and ES2015 tests out-of-box.\n\nRequires test files to be named using one of the following patterns:\n\n- `.test.(js|ts)`\n- `.spec.(js|ts)`,\n- `-test.(js|ts)`,\n- `-spec.(js|ts)`\n- `Test.(js|ts)`,\n- `Spec.(js|ts)`\n\n## Let me have it!\n```sh\nnpm install --save-dev @northbrook/mocha\n```\n\n## Usage\n\n### Configuration\n\n```typescript\n// northbrook.js\nconst mocha = require('@northbrook/mocha').plugin;\n// northbrook.ts\nimport { plugin as mocha } from '@nothrbook/mocha';\n\nmodule.exports = {\n  plugins: [ mocha ],\n\n  // 100% optional\n  mocha: {\n    // An array of packages to require before running your tests\n    // That would normally be used as `mocha -r _____`\n    require: [ 'jsdom-global/register' ],\n    // An array of packages you would like to be excluded from test running\n    exclude: [ 'name-of-package' ]\n  }\n}\n```\n\n### CLI\n\n```sh\nnorthbrook mocha\n```\n\n#### CLI Options\n\n##### **--changed**\n\nOnly run tests for the packages that have changed since last release.\nThis option is very useful for speeding up CI testing for monorepos.\n\n```sh\nnorthbrook mocha --changed\n```\n\n##### **--require**\n\nA list of packages, separated by comma, to require before running your tests\nThat would normally be used as `mocha -r _____`\n\n```sh\nnorthbrook mocha --require jsdom-global/register,buba/register\n```","publish_time":1483414180988,"_cnpm_publish_time":1483414180988,"dist-tags":{"latest":"3.1.1"}}