New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

co-mocha

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

co-mocha

Enable support for generators in Mocha tests

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15K
increased by18.55%
Maintainers
1
Weekly downloads
 
Created
Source

co-mocha

Enable support for generators in Mocha tests using co.

Currently you must use the --harmony-generators flag when running node 0.11.x to get access to generators.

Installation

npm install co-mocha --save-dev

Usage

Add --require co-mocha to your mocha.opts. Now you can write your tests using generators.

it('should do something', function* () {
  yield users.load(123);
});

License

MIT

Keywords

FAQs

Package last updated on 03 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc