Files
forumlify/package.json
T
lezi-fun 7d431a89a7 test: add API integration test suite (40 tests)
- node:test based, zero extra dependencies, npm test script
- api.test.js: auth, posts, pagination, replies, 404/401 handling
- admin.test.js: admin API, role management, settings, links, logs
- dm.test.js: private messaging, unread counts, read receipts, 403
- helpers.js: makeAdmin() to guarantee admin role in shared DB
- test/README.md: setup and run instructions
2026-08-09 21:26:03 +08:00

22 lines
528 B
JSON

{
"name": "forumlify",
"version": "2.0.0",
"description": "Forumlify - 简洁优雅的现代社区系统 (Next.js)",
"private": true,
"scripts": {
"dev": "next dev -H 0.0.0.0",
"build": "next build",
"start": "node scripts/start.js",
"test": "node --test --test-concurrency=1 \"test/*.test.js\""
},
"dependencies": {
"bcrypt": "^5.1.1",
"jsonwebtoken": "^9.0.2",
"next": "^14.2.15",
"pg": "^8.11.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {}
}