mocha-custom-stack-trace-reporter
Advanced tools
Comparing version 1.0.6 to 2.0.0
@@ -11,3 +11,3 @@ "use strict"; | ||
process.on("unhandledRejection", (reason, promise) => { | ||
var reason_stack_or_reason = reason.stack || reason; | ||
var reason_stack_or_reason = (reason === null || reason === void 0 ? void 0 : reason.stack) || reason; | ||
throw new Error(`the execution failed due to an unhandled promise rejection, details: ${reason_stack_or_reason}`); | ||
@@ -14,0 +14,0 @@ }); |
{ | ||
"author": "Unscrambl", | ||
"name": "mocha-custom-stack-trace-reporter", | ||
"version": "1.0.6", | ||
"version": "2.0.0", | ||
"description": "Expand Mocha error reports with custom stack traces", | ||
"main": "built/src/mochaCustomStackTraceReporter.js", | ||
"dependencies": { | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.12.10", | ||
"mocha": "5.2.0", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.1.6" | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^14.14.41", | ||
"mocha": "^8.3.2", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.2.4" | ||
}, | ||
"devDependencies": { | ||
"chai": "4.1.2" | ||
"chai": "^4.3.4" | ||
}, | ||
@@ -17,0 +17,0 @@ "scripts": { |
@@ -14,6 +14,6 @@ import { reporters, Runner } from "mocha"; | ||
runner.on("start", () => { | ||
process.on("unhandledRejection", (reason, promise) => { | ||
process.on("unhandledRejection", (reason : Error, promise) => { | ||
// we are throwing an error here to avoid the process exiting with 0 exit code and not running subsequent | ||
// tests in case of an unhandled promise rejection | ||
var reason_stack_or_reason = reason.stack || reason | ||
var reason_stack_or_reason = reason?.stack || reason | ||
throw new Error(`the execution failed due to an unhandled promise rejection, details: ${reason_stack_or_reason}`); | ||
@@ -31,1 +31,2 @@ }); | ||
export = MochaCustomStackTraceReporter; | ||
19062
+ Added@types/mocha@8.2.3(transitive)
+ Added@types/node@14.18.63(transitive)
+ Added@ungap/promise-all-settled@1.1.2(transitive)
+ Addedansi-colors@4.1.1(transitive)
+ Addedansi-regex@3.0.15.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedanymatch@3.1.3(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbinary-extensions@2.3.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedchokidar@3.5.1(transitive)
+ Addedcliui@7.0.4(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addeddebug@4.3.1(transitive)
+ Addeddecamelize@4.0.0(transitive)
+ Addeddiff@5.0.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedflat@5.0.2(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedglob@7.1.6(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhe@1.2.0(transitive)
+ Addedis-binary-path@2.1.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-fullwidth-code-point@2.0.03.0.0(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-plain-obj@2.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjs-yaml@4.0.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedlog-symbols@4.0.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmocha@8.4.0(transitive)
+ Addedms@2.1.22.1.3(transitive)
+ Addednanoid@3.1.20(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedreaddirp@3.5.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedserialize-javascript@5.0.1(transitive)
+ Addedstring-width@2.1.14.2.3(transitive)
+ Addedstrip-ansi@4.0.06.0.1(transitive)
+ Addedstrip-json-comments@3.1.1(transitive)
+ Addedsupports-color@5.5.07.2.08.1.1(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtslint@6.1.3(transitive)
+ Addedtypescript@4.9.5(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwide-align@1.1.3(transitive)
+ Addedworkerpool@6.1.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@16.2.0(transitive)
+ Addedyargs-parser@20.2.4(transitive)
+ Addedyargs-unparser@2.0.0(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removed@types/mocha@5.2.7(transitive)
- Removed@types/node@10.17.60(transitive)
- Removedcommander@2.15.1(transitive)
- Removeddebug@3.1.0(transitive)
- Removeddiff@3.5.0(transitive)
- Removedglob@7.1.2(transitive)
- Removedhe@1.1.1(transitive)
- Removedminimist@0.0.8(transitive)
- Removedmkdirp@0.5.1(transitive)
- Removedmocha@5.2.0(transitive)
- Removedms@2.0.0(transitive)
- Removedsupports-color@5.4.0(transitive)
- Removedtslint@5.20.1(transitive)
- Removedtypescript@3.9.10(transitive)
Updated@types/mocha@^8.2.2
Updated@types/node@^14.14.41
Updatedmocha@^8.3.2
Updatedtslint@^6.1.3
Updatedtypescript@^4.2.4