test: add coverage for sync-new-content and explore claimable endpoints
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m4s
CI / Lint, Build & Test (pull_request) Successful in 1m10s

This commit is contained in:
2026-03-24 13:18:15 -07:00
committed by Naomi Carrigan
parent e808d92909
commit 050e34e6cd
3 changed files with 281 additions and 0 deletions
+2
View File
@@ -586,6 +586,8 @@ const patchQuestRewards = (state: GameState): number => {
return `${reward.type}:${String(reward.targetId ?? reward.amount ?? "")}`;
}));
for (const reward of defaultQuest.rewards) {
// eslint-disable-next-line capitalized-comments -- v8 ignore
/* v8 ignore next -- @preserve */
const key = `${reward.type}:${String(reward.targetId ?? reward.amount ?? "")}`;
if (!existingKeys.has(key)) {
savedQuest.rewards.push(structuredClone(reward));