Commit 2d6d7cb
test: add comprehensive test coverage for persistence functionality
Adds comprehensive test suites achieving excellent coverage:
• PersistenceManager: 73.93% coverage (up from 5.85%)
• Persistence Tools: 100% coverage
• Total 179 tests passing, +35 new tests
Test Coverage Improvements:
✅ Core persistence functionality (enable/disable cycles)
✅ State serialization/deserialization (Map, Date objects)
✅ File operations and error handling
✅ Schema validation and version checking
✅ MCP tool parameter validation and responses
✅ Storage location priority and fallback logic
CI/CD Updates:
• Updated test matrix to Node 22 and 24 only
• Maintained 80% coverage threshold requirements
• All existing functionality tests continue to pass
The persistence feature is now production-ready with robust test coverage
ensuring reliability across various scenarios and edge cases.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a1a3289 commit 2d6d7cb
File tree
3 files changed
+651
-3
lines changed- .github/workflows
- tests/__tests__
- tools
- utils
3 files changed
+651
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
0 commit comments