add why-is-node-running

This commit is contained in:
Sorunome 2018-11-07 14:55:43 +01:00
parent 66c1cf2361
commit 8c34f19e3f
No known key found for this signature in database
GPG key ID: 63E31F7B5993A9C4
5 changed files with 28 additions and 3 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@ logs
*.log.*
npm-debug.log*
.audit.json
*-audit.json
# Runtime data
pids

15
package-lock.json generated
View file

@ -2674,6 +2674,12 @@
"resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz",
"integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA="
},
"stackback": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
"integrity": "sha1-Gsig2Ug4SNFpXkGLbQMaPDzmjjs=",
"dev": true
},
"statuses": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
@ -3063,6 +3069,15 @@
"isexe": "^2.0.0"
}
},
"why-is-node-running": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.0.3.tgz",
"integrity": "sha512-XmzbFN2T859avcs5qAsiiK1iu0nUpSUXRgiGsoHPcNijxhIlp1bPQWQk6ANUljDWqBtAbIR2jF1HxR0y2l2kCA==",
"dev": true,
"requires": {
"stackback": "0.0.2"
}
},
"winston": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/winston/-/winston-3.1.0.tgz",

View file

@ -64,6 +64,7 @@
"eslint": "^3.8.1",
"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"proxyquire": "^1.7.11"
"proxyquire": "^1.7.11",
"why-is-node-running": "^2.0.3"
}
}

View file

@ -1,5 +1,8 @@
import {argv} from "process";
import {Log} from "../src/log";
import { argv } from "process";
import { Log } from "../src/log";
import * as WhyRunning from "why-is-node-running";
const logger = new Log("MessageProcessor");
// we are a test file and thus need those
/* tslint:disable:no-unused-expression max-file-line-count */
@ -7,3 +10,7 @@ import {Log} from "../src/log";
if (!argv.includes("--noisy")) {
Log.ForceSilent();
}
after(() => {
WhyRunning();
});

View file

@ -1,3 +1,4 @@
--reporter list
--ui bdd
--recursive
--expose-internals