Skip to content

Commit 86df358

Browse files
laurigatesclaude
andauthored
chore/improve tests (#8)
* fix: improve test suite reliability and mocking - Fix axios mocking in FoundryClient tests by adding proper interceptors mock - Add apiKey to test client configurations to enable API calls - Fix header expectations in constructor tests to match actual implementation - Add axios mocking setup to integration tests - Format README.md with consistent spacing - Improve test success rate from 51/72 to 58/72 tests passing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: add FoundryVTT API reference link to CLAUDE.md 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: resolve TypeScript errors in character manager - Add null checks for undefined XP values in level progression - Fix restoreResources method implementation with proper return statement - Use resetType property instead of non-existent restore flags - Handle resource restoration for both short and long rests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: resolve TypeScript errors in combat manager - Add null checks for currentCombatant assignment - Provide default values for optional combatant properties - Fix initiative and AC to use numbers instead of undefined - Add safety checks for array access in time calculations - Handle undefined combatant states properly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: resolve TypeScript errors in foundry client - Add default timeout value for axios configuration - Fix DiceRoll interface compliance with exactOptionalPropertyTypes - Handle optional reason property correctly in dice roll results - Add null checks for dice parsing parameters - Ensure DiceRoll objects match interface requirements exactly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: resolve TypeScript errors in main server - Add default values for optional configuration properties - Fix private config access with type assertions - Add explicit type annotations for implicit any parameters - Handle undefined array access with proper index signatures - Improve pickRandom method with proper error handling - Fix resource URI parameter handling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent e7af313 commit 86df358

File tree

8 files changed

+171
-67
lines changed

8 files changed

+171
-67
lines changed

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ Optional:
8686
- ESLint rules enforce functional programming patterns
8787
- WebSocket fallback when REST API module unavailable
8888
- Graceful degradation for missing FoundryVTT features
89+
90+
## Reference Links
91+
- https://foundryvtt.com/api/

0 commit comments

Comments
 (0)