fix(api): provide seed npcs.json fixture and safe file loader (#83) - #96
fix(api): provide seed npcs.json fixture and safe file loader (#83)#96Rodrigoue9 wants to merge 1 commit into
Conversation
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsAdds baseline npcs.json seed data and safety checks to prevent ENOENT crashes during CI test runs. Consider making the silent empty-array fallback explicit to avoid masking missing seed files. 💡 Quality: Silent empty-array guard can mask missing seed data📄 api/src/lib/gameData.ts:248-262
🤖 Prompt for agentsOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Title
fix(api): provide seed npcs.json fixture and safe file existence loader (#83)
Description
api/src/jsons/npcs.jsonseed data containing vendor and priest NPC presets.loadSeedNpcsJsonandloadNpcsJsonFromFileto avoid unhandledENOENTexceptions during clean CI test runs.market.integration.test.tsrequirement for seeded trade NPCs.Closes #83