CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (push) Successful in 18s
CI / Security (npm audit) (push) Failing after 12s
CI / Scan (secrets, workflows, shell) (push) Successful in 18s
CI / Integration (api) (push) Successful in 2m58s
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Test (jest) (pull_request) Successful in 15s
CI / UI (playwright) (push) Successful in 3m11s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI / Security (npm audit) (pull_request) Failing after 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 15s
CI / Integration (api) (pull_request) Successful in 1m18s
CI / UI (playwright) (pull_request) Successful in 1m31s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
- worker/worker.js exports PulseWorker and starts only when run directly (no behaviour change for the service; CT 153 needs no redeploy). - tests/worker.test.js: success, exit code and stderr, timeout kill, capacity rejection, slot release after failure, ping/pong, no sends while disconnected. - jest coverage floors (ratchet at today's levels): lib/ 90% lines and statements, 80% branches and functions; worker/ 40%. - The audit job writes a CycloneDX SBOM of production dependencies and keeps it 90 days for each main build. Part of #45 phases 3 and 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"name": "pulse-server",
|
|
"version": "1.0.0",
|
|
"main": "server.js",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"test": "jest --coverage",
|
|
"lint": "eslint --ext .js .",
|
|
"test:ui": "playwright test",
|
|
"test:integration": "jest --config tests/integration/jest.config.js"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"description": "",
|
|
"dependencies": {
|
|
"axios": "^1.20.0",
|
|
"cron-parser": "^5.5.0",
|
|
"dotenv": "^17.2.3",
|
|
"ejs": "3.1.10",
|
|
"express": "^5.1.0",
|
|
"express-rate-limit": "^8.3.1",
|
|
"helmet": "8.1.0",
|
|
"mysql2": "^3.15.3",
|
|
"ws": "^8.18.3"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.64.1",
|
|
"eslint": "^8.57.1",
|
|
"jest": "^30.5.2"
|
|
},
|
|
"jest": {
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/",
|
|
"/tests/ui/",
|
|
"/tests/integration/"
|
|
],
|
|
"coverageThreshold": {
|
|
"./lib/": {
|
|
"statements": 90,
|
|
"branches": 80,
|
|
"functions": 80,
|
|
"lines": 90
|
|
},
|
|
"./worker/": {
|
|
"statements": 40,
|
|
"branches": 70,
|
|
"functions": 25,
|
|
"lines": 40
|
|
}
|
|
}
|
|
}
|
|
}
|