- Change GET /api/me/deployments/:id/devices to return 400 error when legacy_deployment_id is missing - Add error response with code 'MISSING_DEPLOYMENT_ID' and descriptive message - Add comprehensive Jest tests for missing deployment scenarios - Install Jest and Supertest for backend testing - Add test scripts to package.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
{
|
|
"name": "wellnuo-api",
|
|
"version": "1.0.0",
|
|
"description": "WellNuo Backend API",
|
|
"main": "src/index.js",
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"dev": "nodemon src/index.js",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.966.0",
|
|
"@supabase/supabase-js": "^2.39.0",
|
|
"axios": "^1.6.2",
|
|
"bcryptjs": "^2.4.3",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.3.1",
|
|
"expo-server-sdk": "^4.0.0",
|
|
"express": "^4.18.2",
|
|
"express-rate-limit": "^8.2.1",
|
|
"express-validator": "^7.3.1",
|
|
"helmet": "^8.1.0",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"mqtt": "^5.14.1",
|
|
"multer": "^1.4.5-lts.1",
|
|
"node-cron": "^4.2.1",
|
|
"pg": "^8.16.3",
|
|
"stripe": "^20.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^30.0.0",
|
|
"jest": "^30.2.0",
|
|
"nodemon": "^3.0.2",
|
|
"supertest": "^7.2.2"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"coveragePathIgnorePatterns": [
|
|
"/node_modules/"
|
|
],
|
|
"testMatch": [
|
|
"**/__tests__/**/*.js",
|
|
"**/?(*.)+(spec|test).js"
|
|
]
|
|
}
|
|
}
|