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

gulp-mocha

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-mocha - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

23

index.js
'use strict';
var es = require('event-stream');
var path = require('path');
var through = require('through');
var gutil = require('gulp-util');
var Mocha = require('mocha');
var path = require('path');

@@ -9,3 +10,3 @@ module.exports = function (options) {

return es.through(function (file) {
return through(function (file) {
delete require.cache[require.resolve(path.resolve(file.path))];

@@ -15,10 +16,14 @@ mocha.addFile(file.path);

}, function () {
mocha.run(function (errCount) {
if (errCount > 0) {
return this.emit('error', new Error('gulp-mocha: ' + errCount + ' ' + (errCount === 1 ? 'test' : 'tests') + ' failed.'));
}
try {
mocha.run(function (errCount) {
if (errCount > 0) {
return this.emit('error', new Error('gulp-mocha: ' + errCount + ' ' + (errCount === 1 ? 'test' : 'tests') + ' failed.'));
}
this.emit('end');
}.bind(this));
this.emit('end');
}.bind(this));
} catch (err) {
this.emit('error', new Error('gulp-mocha: ' + err));
}
});
};
{
"name": "gulp-mocha",
"version": "0.1.3",
"version": "0.2.0",
"description": "Run Mocha tests",

@@ -13,3 +13,3 @@ "license": "MIT",

"engines": {
"node": ">=0.8.0"
"node": ">=0.10.0"
},

@@ -37,8 +37,6 @@ "scripts": {

"dependencies": {
"event-stream": "~3.0.20",
"mocha": "~1.16.2"
},
"devDependencies": {
"gulp-util": "~2.2.0"
"gulp-util": "~2.2.0",
"through": "~2.3.0",
"mocha": "~1"
}
}
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