fix: SpireTab store props, mana regen display, skill cost deduction, grimoire cost format, unequip store, add test suite
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m34s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m34s
This commit is contained in:
@@ -471,6 +471,19 @@ Runs after merging branches:
|
||||
5. **Not updating modular stores**: Check all stores in `stores/` directory for related state
|
||||
6. **Bypassing crafting-actions**: Use the modular actions in `crafting-actions/` for new crafting features
|
||||
|
||||
## Testing
|
||||
|
||||
Run `npm run test` before every commit. Tests must pass.
|
||||
|
||||
When fixing a bug, write a test that would have caught it first.
|
||||
Test files live in src/lib/game/stores/__tests__/.
|
||||
|
||||
Critical paths that must always have tests:
|
||||
- Any store action that modifies rawMana
|
||||
- Any store action that modifies equippedInstances
|
||||
- computeRegen, computeMaxMana, calcDamage
|
||||
- canAffordSpellCost, spendRawMana, deductSpellCost
|
||||
|
||||
## Testing Guidelines
|
||||
|
||||
- Run `npm run lint` after changes
|
||||
|
||||
Reference in New Issue
Block a user