Skip to content

Conversation

laurigates
Copy link
Owner

  • fix: improve test suite reliability and mocking
  • docs: add FoundryVTT API reference link to CLAUDE.md

laurigates and others added 6 commits June 22, 2025 08:14
- 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>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- 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>
- 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>
- 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>
- 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>
@laurigates laurigates merged commit 86df358 into main Jun 22, 2025
0 of 2 checks passed
@laurigates laurigates deleted the chore/improve_tests branch June 22, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant