--- id: b286a8fb-6205-4d5c-9bfd-d21835200329 type: decision title: "Vagabond RPG testing strategy documented" tags: [vagabond-rpg, testing, documentation, decision] importance: 0.7 confidence: 0.8 created: "2025-12-14T03:20:54.225550+00:00" updated: "2025-12-14T03:20:54.225550+00:00" --- Created comprehensive testing strategy note at gaming/vagabond-rpg/testing-strategy in NoteDiscovery. Key patterns: 1) Unit tests use explicit method calls for isolation, 2) Integration tests wait for async lifecycle methods with setTimeout, 3) Methods must be idempotent to handle race conditions, 4) Calculate values directly from system data (not data model methods) for embedded items, 5) Add error handling for 'Actor does not exist' in lifecycle methods. Reference added to CLAUDE.md.