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

mocha-custom-stack-trace-reporter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-custom-stack-trace-reporter - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

README-updating-directions

6

built/src/mochaCustomStackTraceReporter.js

@@ -9,2 +9,8 @@ "use strict";

});
runner.on("start", () => {
process.on("unhandledRejection", (reason, promise) => {
console.log("ERROR: the execution failed due to an unhandled promise rejection, details: %s", reason.stack || reason);
process.exit(process.exitCode | 100);
});
});
}

@@ -11,0 +17,0 @@ static stackTrace(error) {

2

package.json
{
"author": "Unscrambl",
"name": "mocha-custom-stack-trace-reporter",
"version": "1.0.3",
"version": "1.0.4",
"description": "Expand Mocha error reports with custom stack traces",

@@ -6,0 +6,0 @@ "main": "built/src/mochaCustomStackTraceReporter.js",

# mocha-custom-stack-trace-reporter
This library can be used as a mocha plug-in to report custom stack traces for errors. If the error object that escapes from a test has a 'stackTrace()' function, then this function is called to retrieve the stack trace and report it.
This library can be used as a mocha plug-in to report custom stack traces for errors. If the error object that escapes
from a test has a 'stackTrace()' function, then this function is called to retrieve the stack trace and report it. It
also handles unhandled promise rejections and reports them along with the stack trace.

@@ -12,2 +12,9 @@ import { reporters, Runner } from "mocha";

});
runner.on("start", () => {
process.on("unhandledRejection", (reason, promise) => {
console.log("ERROR: the execution failed due to an unhandled promise rejection, details: %s", reason.stack || reason);
process.exit(process.exitCode | 100);
});
});
}

@@ -21,2 +28,2 @@

export = MochaCustomStackTraceReporter;
export = MochaCustomStackTraceReporter;
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