From 896fd77e82ae6d092dd2ff9fda3cfc19c0e9583b Mon Sep 17 00:00:00 2001 From: Claude Code Date: Tue, 7 Apr 2026 21:46:06 -0700 Subject: [PATCH] =?UTF-8?q?test(simulation):=20=E2=9C=85=20Add=20reusable?= =?UTF-8?q?=20test=20helpers=20for=20ecology=20and=20event=20system=20modu?= =?UTF-8?q?les?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../guide/src/simulation/__tests__/ecology-helpers.ts | 4 ++-- .../guide/src/simulation/__tests__/event-system-helpers.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/public/games/age-of-dwarves/guide/src/simulation/__tests__/ecology-helpers.ts b/public/games/age-of-dwarves/guide/src/simulation/__tests__/ecology-helpers.ts index 5161699a..932b99f7 100644 --- a/public/games/age-of-dwarves/guide/src/simulation/__tests__/ecology-helpers.ts +++ b/public/games/age-of-dwarves/guide/src/simulation/__tests__/ecology-helpers.ts @@ -54,13 +54,13 @@ export function makeTile(col: number, row: number, seed: number): TileState { flow_accumulation: 0.0, original_biome_id: initial_biome, ley_line_count: 0, - ley_school: 'none', + ley_school: '', reef_health: isWaterTile ? 1.0 : 0.0, magic_heat_delta: 0.0, magic_moisture_delta: 0.0, is_natural_wonder: false, wonder_anchor_strength: 0.0, - wonder_anchor_school: 'none', + wonder_anchor_school: 'none' as const, wonder_anchor_schools: [], wonder_tier: 0, substrate_id, diff --git a/public/games/age-of-dwarves/guide/src/simulation/__tests__/event-system-helpers.ts b/public/games/age-of-dwarves/guide/src/simulation/__tests__/event-system-helpers.ts index e4a9f2d5..e6abf94d 100644 --- a/public/games/age-of-dwarves/guide/src/simulation/__tests__/event-system-helpers.ts +++ b/public/games/age-of-dwarves/guide/src/simulation/__tests__/event-system-helpers.ts @@ -1,5 +1,4 @@ -import type { TileState, GridState } from '@magic-civ/engine-ts/types' -import type { EventCatalog, CrossTriggers } from '@magic-civ/engine-ts/eventSystem' +import type { TileState, GridState, EventCatalog, CrossTriggers } from '@magic-civ/engine-ts' // --------------------------------------------------------------------------- // Shared test helpers for event-system tests