df316c2865
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m16s
- Add test-setup.ts: shared test environment setup helper for tick integration tests - Add combat-store.test.ts (24 tests): setCurrentFloor, advanceFloor, setFloorHP, setMaxFloorReached, setAction, setSpell, setCastProgress, learnSpell, setSpellState, debugSetFloor, resetFloorHP, resetCombat, climbDownFloor, exitSpireMode - Add mana-store.test.ts (36 tests): setRawMana, addRawMana, spendRawMana, gatherMana, convertMana, unlockElement, addElementMana, spendElementMana, craftComposite, processConvertAction, resetMana, meditation ticks, setElementMax - Add tick-integration.test.ts (19 tests): time progression, mana regeneration, incursion penalty, meditation, loop end, paused/game over states - Add tick-integration-pact.test.ts (9 tests): victory condition, pact ritual progress, multiple ticks accumulation - Add tick-debug.test.ts (3 debug tests): regen trace, pact ritual trace, persist leak check - Fix bug in gameStore.ts: updatePactRitualProgress was called with absolute newProgress instead of incremental HOURS_PER_TICK, causing exponential progress accumulation - All 422 tests pass (18 test files), all files under 400-line limit
11 lines
467 B
Plaintext
11 lines
467 B
Plaintext
# Circular Dependencies
|
|
Generated: 2026-05-20T11:01:19.491Z
|
|
Found: 1 circular chain(s) — these MUST be fixed before modifying involved files.
|
|
|
|
1. Processed 125 files (1.3s) (4 warnings)
|
|
|
|
## How to fix
|
|
1. Identify which import in the chain can be extracted to a shared types/utils file.
|
|
2. Move the shared type or function there.
|
|
3. Both files import from the new shared module instead of each other.
|
|
4. Run: bunx madge --circular src/lib/game (should return clean) |