test: add cross-module integration tests for tick pipeline
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s

Add 38 integration tests split across 4 files (all under 400 lines):
- cross-module-helpers.ts: shared resetAllStores() and tickN() utilities
- cross-module-combat-meditation.test.ts (12 tests): combat floor
  clearing, meditation regen flow, incursion effects, convert action
- cross-module-prestige-discipline.test.ts (15 tests): prestige loop
  reset, discipline mana drain/XP, pact ritual completion
- cross-module-lifecycle-consistency.test.ts (11 tests): full loop
  lifecycle, store consistency invariants, pause/gameOver blocking

All 38 new + 112 existing tests pass.
This commit is contained in:
2026-05-25 18:26:32 +02:00
parent fdf3984e75
commit 4aa12a10f0
7 changed files with 617 additions and 3 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
# Circular Dependencies
Generated: 2026-05-25T13:20:07.523Z
Generated: 2026-05-25T15:37:17.998Z
Found: 6 circular chain(s) — these MUST be fixed before modifying involved files.
1. Processed 135 files (1.5s) (2 warnings)
1. Processed 135 files (1.7s) (2 warnings)
2. 1) utils/floor-utils.ts > utils/room-utils.ts > utils/enemy-utils.ts
3. 2) utils/floor-utils.ts > utils/room-utils.ts
4. 3) stores/gameStore.ts > stores/gameActions.ts
+1 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-05-25T13:20:05.764Z",
"generated": "2026-05-25T15:37:16.139Z",
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
},
+4
View File
@@ -199,6 +199,10 @@ Mana-Loop/
│ │ │ ├── crafting-utils-equipment.test.ts
│ │ │ ├── crafting-utils-recipe.test.ts
│ │ │ ├── crafting-utils-time.test.ts
│ │ │ ├── cross-module-combat-meditation.test.ts
│ │ │ ├── cross-module-helpers.ts
│ │ │ ├── cross-module-lifecycle-consistency.test.ts
│ │ │ ├── cross-module-prestige-discipline.test.ts
│ │ │ ├── discipline-math.test.ts
│ │ │ ├── discipline-prerequisites.test.ts
│ │ │ ├── enemy-barrier-utils.test.ts