czlonkowski
caf9383ba1
test: Add comprehensive edge case coverage for telemetry quick wins
Added 20 edge case tests based on code review recommendations:
**Duplicate ID Validation (4 tests)**:
- Multiple duplicate IDs (3+ nodes with same ID)
- Duplicate IDs with same node type
- Duplicate IDs with empty/null node names
- Duplicate IDs with missing node properties
**AI Agent Validator (16 tests)**:
maxIterations edge cases (7 tests):
- Boundary values: 0 (reject), 1 (accept), 51 (warn), MAX_SAFE_INTEGER (warn)
- Invalid types: NaN (reject), negative decimal (reject)
- Threshold testing: 50 vs 51
promptType validation (4 tests):
- Whitespace-only text (reject)
- Very long text 3200+ chars (accept)
- undefined/null text (reject)
System message validation (5 tests):
- Empty/whitespace messages (suggest adding)
- Very long messages >1000 chars (accept)
- Special characters, emojis, unicode (accept)
- Multi-line formatting (accept)
- Boundary: 19 chars (warn), 20 chars (accept)
**Test Quality Improvements**:
- Fixed flaky system message test (changed from expect.stringContaining to .some())
- All tests are deterministic
- Comprehensive inline comments
- Follows existing test patterns
All 20 new tests passing. Zero regressions.
Concieved by Romuald Członkowski - www.aiadvisors.pl/en
2025-11-08 18:49:59 +01:00
..
2025-10-07 07:59:00 +02:00
2025-10-07 09:30:49 +02:00
2025-10-24 12:16:20 +02:00
2025-09-22 23:16:24 +02:00
2025-10-11 19:29:21 +02:00
2025-07-30 14:13:19 +02:00
2025-07-30 13:44:35 +02:00
2025-07-30 13:44:35 +02:00
2025-07-30 13:44:35 +02:00
2025-09-29 18:51:59 +02:00
2025-09-25 07:51:04 +02:00
2025-11-08 18:25:20 +01:00
2025-07-28 14:15:09 +02:00
2025-10-01 00:01:59 +02:00
2025-09-22 23:16:24 +02:00
2025-07-30 13:44:35 +02:00
2025-07-28 14:15:09 +02:00
2025-08-02 00:42:25 +02:00
2025-08-07 17:57:08 +02:00
2025-11-06 23:58:34 +01:00
2025-10-22 17:58:13 +02:00
2025-11-04 11:33:54 +01:00
2025-10-24 12:16:20 +02:00
2025-10-19 22:52:13 +02:00
2025-09-24 11:40:40 +02:00
2025-11-08 18:49:59 +01:00
2025-10-24 11:40:03 +02:00
2025-09-25 09:41:57 +02:00
2025-09-25 07:51:04 +02:00
2025-10-24 11:40:03 +02:00
2025-07-28 14:15:09 +02:00
2025-07-30 13:44:35 +02:00
2025-07-28 14:15:09 +02:00
2025-09-25 09:17:02 +02:00
2025-09-25 07:51:04 +02:00
2025-07-28 14:15:09 +02:00
2025-10-07 14:37:43 +02:00
2025-09-22 23:16:24 +02:00
2025-09-29 18:09:06 +02:00
2025-10-24 10:47:49 +02:00
2025-11-08 13:29:22 +01:00
2025-10-23 12:24:10 +02:00
2025-08-02 00:42:25 +02:00
2025-10-07 23:03:15 +02:00
2025-10-05 16:05:19 +02:00
2025-09-22 21:05:27 +02:00
2025-09-22 23:16:24 +02:00
2025-08-07 17:57:08 +02:00
2025-08-07 17:57:08 +02:00
2025-10-02 14:46:32 +02:00
2025-09-22 21:05:27 +02:00
2025-10-02 13:02:32 +02:00
2025-11-08 18:49:59 +01:00
2025-10-24 12:16:20 +02:00