6e5f18ea58
- Extract validateWebhookUrl, applyParams, evalCondition, calculateNextRun to lib/utils.js so they can be tested without DB connection - Fix cron-parser v5 API: parseExpression → CronExpressionParser.parse - Add 31 jest tests covering all four utility functions - Add test.yml CI workflow running jest on every push/PR - Add jest devDependency Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
447 B
JSON
25 lines
447 B
JSON
{
|
|
"name": "pulse-server",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"test": "jest"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"description": "",
|
|
"dependencies": {
|
|
"cron-parser": "^5.5.0",
|
|
"dotenv": "^17.2.3",
|
|
"express": "^5.1.0",
|
|
"express-rate-limit": "^8.3.1",
|
|
"mysql2": "^3.15.3",
|
|
"ws": "^8.18.3"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.57.1",
|
|
"jest": "^29.7.0"
|
|
}
|
|
}
|