8000 test: isolate combat state between runs by Mnehmos · Pull Request #94 · Mnehmos/mnehmos.rpg.mcp · GitHub
[go: up one dir, main page]

Skip to content
8000
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/server/handlers/combat-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,9 @@ export async function handleExecuteLairAction(args: unknown, ctx: SessionContext

// Helper for tests
export function clearCombatState() {
// No-op or clear manager
// CombatManager is a process-wide singleton, so leaving this as a no-op
// lets encounters leak between tests (and between concurrent test files).
getCombatManager().clear();
}

// ============================================================
Expand Down
Loading
0