Skip to content

Commit 4755eef

Browse files
committed
track why it's still running
1 parent 78bd2ab commit 4755eef

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"val-loader": "^1.0.2",
7373
"vm-browserify": "~0.0.0",
7474
"webpack-dev-middleware": "^1.9.0",
75+
"why-is-node-running": "^2.0.2",
7576
"worker-loader": "^1.1.1",
7677
"xxhashjs": "^0.2.1"
7778
},
@@ -122,7 +123,7 @@
122123
"cover": "yarn cover:init && yarn cover:all && yarn cover:report",
123124
"cover:init": "rimraf coverage",
124125
"cover:all": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage",
125-
"cover:integration": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\" --coverage",
126+
"cover:integration": "node -r ./setup/why-is-it-running.js --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\" --coverage",
126127
"cover:unit": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
127128
"cover:report": "istanbul report",
128129
"cover:report-min": "istanbul report --report lcovonly"

setup/why-is-it-running.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const log = require("why-is-node-running");
2+
3+
setInterval(function() {
4+
log();
5+
}, 13 * 1000 * 60).unref();

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5632,6 +5632,10 @@ stack-utils@^1.0.1:
56325632
version "1.0.1"
56335633
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620"
56345634

5635+
stackback@0.0.2:
5636+
version "0.0.2"
5637+
resolved "https://registry.yarnpkg.com/stackback/-/stackback-0.0.2.tgz#1ac8a0d9483848d1695e418b6d031a3c3ce68e3b"
5638+
56355639
static-extend@^0.1.1:
56365640
version "0.1.2"
56375641
resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"
@@ -6252,6 +6256,12 @@ which@^1.1.1, which@^1.2.12, which@^1.2.9, which@^1.3.0:
62526256
dependencies:
62536257
isexe "^2.0.0"
62546258

6259+
why-is-node-running@^2.0.2:
6260+
version "2.0.2"
6261+
resolved "https://registry.yarnpkg.com/why-is-node-running/-/why-is-node-running-2.0.2.tgz#faf352f095356c8c37a28bf645f874e5648c8d02"
6262+
dependencies:
6263+
stackback "0.0.2"
6264+
62556265
wide-align@^1.1.0:
62566266
version "1.1.2"
62576267
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710"

0 commit comments

Comments
 (0)