|
|
|
|
@ -204,16 +204,6 @@ bun test
|
|
|
|
|
- **Needed:** Tests for `ensureUserExists` integration, `isGroupActive` integration, `CommandService` logic, `ResponseQueue` processing (mocking API), `TaskService` operations.
|
|
|
|
|
- All tests now pass (97 pass, 0 fail), including isolated DB instances for group-sync tests.
|
|
|
|
|
|
|
|
|
|
### Test Coverage
|
|
|
|
|
- Database initialization and basic operations (`db.test.ts`).
|
|
|
|
|
- Webhook validation (basic) (`webhook-manager.test.ts`).
|
|
|
|
|
- Command parsing (basic structure) (`command.test.ts`).
|
|
|
|
|
- Environment checks (`server.test.ts`).
|
|
|
|
|
- Basic error handling (`server.test.ts`).
|
|
|
|
|
- WhatsApp ID normalization (`whatsapp.test.ts`).
|
|
|
|
|
- Group sync operations (`group-sync.test.ts`).
|
|
|
|
|
- **Needed:** Tests for `ensureUserExists` integration, `isGroupActive` integration, `CommandService` logic, `ResponseQueue` processing (mocking API), `TaskService` operations.
|
|
|
|
|
|
|
|
|
|
## 🧑💻 Contributing
|
|
|
|
|
1. Fork the repository
|
|
|
|
|
2. Create a feature branch (`git checkout -b feature/implement-user-validation`)
|
|
|
|
|
|