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

This commit is contained in:
2026-05-08 11:45:31 +02:00
parent 0fadbfef4a
commit 71fbc7c964
12 changed files with 354 additions and 22 deletions
+13
View File
@@ -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