Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(coverage): ratchet thresholds to measured baseline for low-coverage modules
Yudhi Armyndharisa3078d5508c1
diff --git a/docs/09-testing-strategy.md b/docs/09-testing-strategy.mdindex 4ee8d21cf..a8c8f11ef 100644--- a/docs/09-testing-strategy.md+++ b/docs/09-testing-strategy.md@@ -184,7 +184,7 @@ authoritative gate. Current policy:| `src/common/storage/` | 75% | 80% | 80% | 77% || `src/common/utils/` | 86% | 92% | 92% | 91% || `src/config/` | 88% | 92% | 91% | 91% |-| `src/core/agent-tools/` | 77% | 32% | 49% | 50% |+| `src/core/agent-tools/` | 80% | 39% | 58% | 57% || `src/core/hooks/` | 81% | 73% | 85% | 84% || `src/core/plugins/` | 72% | 74% | 81% | 80% || `src/database/` | 69% | 69% | 72% | 72% |@@ -194,13 +194,13 @@ authoritative gate. Current policy:| `src/modules/auth/` | 75% | 85% | 86% | 85% || `src/modules/automation/` | 60% | 55% | 75% | 70% || `src/modules/chat-media/` | 78% | 81% | 92% | 90% |-| `src/modules/contact/` | 25% | 48% | 44% | 43% |-| `src/modules/docker/` | 26% | 52% | 37% | 38% |+| `src/modules/contact/` | 39% | 53% | 50% | 49% |+| `src/modules/docker/` | 29% | 55% | 40% | 40% || `src/modules/events/` | 70% | 84% | 81% | 80% || `src/modules/group/` | 64% | 47% | 67% | 67% || `src/modules/infra/` | 73% | 71% | 87% | 86% || `src/modules/integration/` | 76% | 83% | 90% | 89% |-| `src/modules/mcp/` | 33% | 48% | 45% | 46% |+| `src/modules/mcp/` | 45% | 55% | 53% | 53% || `src/modules/media/` | 71% | 87% | 89% | 88% || `src/modules/message/` | 57% | 66% | 81% | 80% || `src/modules/metrics/` | 61% | 65% | 68% | 65% |@@ -211,7 +211,7 @@ authoritative gate. Current policy:| `src/modules/stats/` | 67% | 63% | 71% | 69% || `src/modules/status-store/` | 79% | 83% | 92% | 91% || `src/modules/status/` | 47% | 45% | 62% | 60% |-| `src/modules/template/` | 43% | 52% | 70% | 67% |+| `src/modules/template/` | 46% | 55% | 73% | 72% || `src/modules/webhook/` | 72% | 89% | 90% | 87% |Each floor sits roughly five points below that scope's measured coverage, so it catches a realdiff --git a/package.json b/package.jsonindex 4e85e7b70..2c94fde37 100644--- a/package.json+++ b/package.json@@ -205,10 +205,10 @@"statements": 91},"./src/core/agent-tools/": {- "branches": 77,- "functions": 32,- "lines": 49,- "statements": 50+ "branches": 80,+ "functions": 39,+ "lines": 58,+ "statements": 57},"./src/core/hooks/": {"branches": 81,@@ -265,16 +265,16 @@"statements": 90},"./src/modules/contact/": {- "branches": 25,- "functions": 48,- "lines": 44,- "statements": 43+ "branches": 39,+ "functions": 53,+ "lines": 50,+ "statements": 49},"./src/modules/docker/": {- "branches": 26,- "functions": 52,- "lines": 37,- "statements": 38+ "branches": 29,+ "functions": 55,+ "lines": 40,+ "statements": 40},"./src/modules/events/": {"branches": 70,@@ -301,10 +301,10 @@"statements": 89},"./src/modules/mcp/": {- "branches": 33,- "functions": 48,- "lines": 45,- "statements": 46+ "branches": 45,+ "functions": 55,+ "lines": 53,+ "statements": 53},"./src/modules/media/": {"branches": 71,@@ -367,10 +367,10 @@"statements": 60},"./src/modules/template/": {- "branches": 43,- "functions": 52,- "lines": 70,- "statements": 67+ "branches": 46,+ "functions": 55,+ "lines": 73,+ "statements": 72},"./src/modules/webhook/": {"branches": 72,