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
This commit is contained in:
1 parent
02ac24ba88
commit
7d431a89a7
6 files changed
+463
-1
No files matched your search
+2
-1
@@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"dev": "next dev -H 0.0.0.0",
|
||||
"build": "next build",
|
||||
"start": "node scripts/start.js"
|
||||
"start": "node scripts/start.js",
|
||||
"test": "node --test --test-concurrency=1 \"test/*.test.js\""
|
||||
},
|
||||
"dependencies": {
|
||||
"bcrypt": "^5.1.1",
|
||||
|
||||
Reference in new issue
Block a user