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.2 to 0.1.3

5

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

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

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

@@ -15,4 +17,3 @@ this.emit('data', file);

if (errCount > 0) {
var errMsg = errCount + ' ' + (errCount === 1 ? 'test' : 'tests') + ' failed.';
return this.emit('error', new Error(errMsg));
return this.emit('error', new Error('gulp-mocha: ' + errCount + ' ' + (errCount === 1 ? 'test' : 'tests') + ' failed.'));
}

@@ -19,0 +20,0 @@

2

package.json
{
"name": "gulp-mocha",
"version": "0.1.2",
"version": "0.1.3",
"description": "Run Mocha tests",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -25,3 +25,3 @@ # [gulp](https://github.com/wearefractal/gulp)-mocha [![Build Status](https://secure.travis-ci.org/sindresorhus/gulp-mocha.png?branch=master)](http://travis-ci.org/sindresorhus/gulp-mocha)

gulp.src('app.js')
.pipe(mocha({ui: 'nyan'}));
.pipe(mocha({reporter: 'nyan'}));
});

@@ -28,0 +28,0 @@ ```

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