Skip to content

Commit 2d6d7cb

Browse files
conorluddyclaude
andcommitted
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

3 files changed

+651
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: macos-latest
1212
strategy:
1313
matrix:
14-
node-version: [18, 20]
14+
node-version: [22, 24]
1515

1616
steps:
1717
- uses: actions/checkout@v4
@@ -38,8 +38,8 @@ jobs:
3838
run: npm run format:check
3939

4040
- name: Upload coverage
41-
if: matrix.node-version == 20
42-
uses: codecov/codecov-action@v4
41+
if: matrix.node-version == 24
42+
uses: codecov/codecov-action@v5
4343
with:
4444
token: ${{ secrets.CODECOV_TOKEN }}
4545
fail_ci_if_error: false

0 commit comments

Comments
 (0)