tap-mocha-reporter
Advanced tools
Comparing version 0.0.12 to 0.0.13
11
index.js
@@ -20,6 +20,6 @@ #!/usr/bin/env node | ||
var Parser = require('tap-parser') | ||
require('exit-code') | ||
util.inherits(Formatter, Writable) | ||
var exitCode | ||
function Formatter (type, options) { | ||
@@ -43,3 +43,3 @@ if (!reporters[type]) { | ||
if (!p.ok) | ||
process.exitCode = 1 | ||
exitCode = 1 | ||
}) | ||
@@ -55,6 +55,11 @@ return this | ||
if (!runner.parser.ok) | ||
process.exitCode = 1 | ||
exitCode = 1 | ||
}) | ||
} | ||
process.on('exit', function (code) { | ||
if (!code && exitCode) | ||
process.exit(exitCode) | ||
}) | ||
Formatter.prototype.write = function () { | ||
@@ -61,0 +66,0 @@ return this.runner.write.apply(this.runner, arguments) |
{ | ||
"name": "tap-mocha-reporter", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Format a TAP stream using Mocha's set of reporters", | ||
@@ -23,3 +23,2 @@ "main": "index.js", | ||
"escape-string-regexp": "^1.0.3", | ||
"exit-code": "^1.0.1", | ||
"glob": "^5.0.5", | ||
@@ -26,0 +25,0 @@ "js-yaml": "^3.3.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118292
8
3598
- Removedexit-code@^1.0.1
- Removedexit-code@1.0.2(transitive)