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

mocha-jshint

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-jshint

run JSHint as mocha tests

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
788
decreased by-20.8%
Maintainers
1
Weekly downloads
 
Created
Source

mocha-jshint

Run JSHint as Mocha tests.

To install in your node.js project as devDependency, run this command, in the root of your project

npm install mocha-jshint --save-dev

usage

Mocha defaults to looking for your test specs in the test folder of yoour project. Add this file as test/JSHint.spec.js in your project, with the following content:

require('mocha-jshint')();

That is it you are done.

To grep only the JSHint test, just do

mocha --grep JSHint

Why?

This module was created to:

  • Make adding JSHint testing to a project using Mocha as easy as possible
  • Make it easy to piggyback on all the different Mocha reporters (dot, spec, teamcity etc) for JSHint output
  • Make sure that you get a click-able link directly to the problem in WebStorm, when JSHint fails
  • Make sure that there is no unnecessary noise in the test output

Keywords

FAQs

Package last updated on 22 Nov 2013

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