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

grunt-mocha-istanbul

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-mocha-istanbul - npm Package Compare versions

Comparing version 2.3.1 to 2.4.0

2

package.json
{
"name" : "grunt-mocha-istanbul",
"version" : "2.3.1",
"version" : "2.4.0",
"description" : "Almost config-free Istanbul code coverage reporter for Mocha usage in Grunt",

@@ -5,0 +5,0 @@ "peerDependencies": {

@@ -52,3 +52,5 @@ [![Dependency Status](https://david-dm.org/pocesar/grunt-mocha-istanbul.png?theme=shields.io)](https://david-dm.org/pocesar/grunt-mocha-istanbul)

coverageFolder: 'coverageSpecial',
mask: '*.spec.js'
mask: '*.spec.js',
mochaOptions: ['--harmony','--async-only'], // any extra options
istanbulOptions: ['--harmony','--handle-sigint']
}

@@ -59,3 +61,3 @@ },

options: {
coverage:true,
coverage:true, // this will make the grunt.event.on('coverage') event listener to be triggered
check: {

@@ -85,3 +87,3 @@ lines: 75,

grunt.event.on('coverage', function(lcovFileContents, done){
// Check below
// Check below on the section "The coverage event"
done();

@@ -120,7 +122,7 @@ });

Any additional mocha parameters, manually set
An array of strings, any additional mocha parameters, manually set. Eg.: `['--harmony']`
##### _Array_ `options.istanbulOptions` (default: `false`)
Any additional istanbul parameters, manually set
An array of strings, any additional istanbul parameters, manually set. Eg.: `['--harmony', '--handle-sigint']`

@@ -134,4 +136,4 @@ ##### _String_ `options.scriptPath` (default: `istanbulPath`)

Setting this to true makes the task emit a grunt event `coverage`, that will contain the lcov data from
the file, containing the following callback `function(lcovcontent, done)`, and you must manually call
`done()` when you are finished, else the grunt task will hang. See more information below
the file, containing the following callback `function(lcovcontent, done)`, and **you must manually call
`done()` when you are finished, else the grunt task will HANG, and won't allow any other tasks to finish**. See more information below

@@ -138,0 +140,0 @@ ##### _Boolean_ `options.dryRun` (default: `false`)

@@ -5,3 +5,3 @@ module.exports = function (grunt){

var
cmd = 'node',
cmd = process.execPath,
path = require('path'),

@@ -8,0 +8,0 @@ mochaPath,

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