This commit is contained in:
boufni95 2024-08-09 15:06:30 +02:00
parent 4b876e648d
commit bbfeb905e3
3 changed files with 9341 additions and 9320 deletions

25
package-lock.json generated
View file

@ -1,13 +1,13 @@
{
"name": "lightning.pub",
"name": "lnpub",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "lightning.pub",
"name": "lnpub",
"version": "1.0.0",
"license": "ISC",
"license": "Affero GPLv3",
"dependencies": {
"@grpc/grpc-js": "^1.6.7",
"@protobuf-ts/grpc-transport": "^2.5.0",
@ -45,7 +45,8 @@
"typescript": "^4.6.4",
"uuid": "^8.3.2",
"websocket": "^1.0.34",
"websocket-polyfill": "^0.0.3"
"websocket-polyfill": "^0.0.3",
"why-is-node-running": "^3.2.0"
},
"devDependencies": {
"@types/chai": "^4.3.4",
@ -5204,6 +5205,17 @@
"node": ">= 8"
}
},
"node_modules/why-is-node-running": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.0.tgz",
"integrity": "sha512-euOPfZRxdZBcD/vL0sH+NtuC/nDpdsZ/aeoq9w5sOcQtfkmhztf/JS76IiD0CJEULlSAPSMy/ZLejex5MsFCcw==",
"bin": {
"why-is-node-running": "cli.js"
},
"engines": {
"node": ">=20.11"
}
},
"node_modules/wide-align": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
@ -9246,6 +9258,11 @@
"isexe": "^2.0.0"
}
},
"why-is-node-running": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.0.tgz",
"integrity": "sha512-euOPfZRxdZBcD/vL0sH+NtuC/nDpdsZ/aeoq9w5sOcQtfkmhztf/JS76IiD0CJEULlSAPSMy/ZLejex5MsFCcw=="
},
"wide-align": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",

View file

@ -61,7 +61,8 @@
"typescript": "^4.6.4",
"uuid": "^8.3.2",
"websocket": "^1.0.34",
"websocket-polyfill": "^0.0.3"
"websocket-polyfill": "^0.0.3",
"why-is-node-running": "^3.2.0"
},
"devDependencies": {
"@types/chai": "^4.3.4",

View file

@ -1,4 +1,4 @@
import whyIsNodeRunning from 'why-is-node-running'
import { globby } from 'globby'
import { setupNetwork } from './networkSetup.js'
import { Describe, SetupTest, teardown, TestBase } from './testBase.js'
@ -51,6 +51,9 @@ const start = async () => {
console.log(greenConsole, "there have been 0 failures in all tests", resetConsole)
}
setInterval(() => {
whyIsNodeRunning()
}, 1000);
}
const runTestFile = async (fileName: string, mod: TestModule) => {