Skip to content

Tests: the update check tests know about both #403 and #573 - #583

Merged
elripalda merged 1 commit into
mainfrom
claude/project-thread-d49tbl-update-tests
Nov 25, 2026
Merged

elripalda merged 1 commit into
mainfrom
claude/project-thread-d49tbl-update-tests

Conversation

@elripalda

Copy link
Copy Markdown
Owner

What this changes

Main's UI tests fail (9 of 1,030) since #403 and #573 both landed. Each changed checkUpdates and was tested against a main without the other:

The launcher code is right. Only the two test setups change, so each includes what the other PR added. Nothing is skipped.

How you tested it

  • node --test tests/*.test.cjs passes: 1,030 of 1,030 (main: 9 failing)

Checklist

  • One change per pull request
  • No version bump or patch notes

Generated by Claude Code

#403 (an update check can't overwrite a newer choice) and #573 (an
update check leaves a game being uninstalled alone) both changed
checkUpdates and each was tested against main without the other. Once
both were in, each one's test context was missing what the other added
(S.uninstalling and parentId; stillChecked), so 9 tests failed on main.
The code is right; the two test setups now include both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@elripalda
elripalda merged commit 03868c7 into main Nov 25, 2026
7 of 8 checks passed
@elripalda
elripalda deleted the claude/project-thread-d49tbl-update-tests branch November 25, 2026 18:36
@Xarishark Xarishark self-assigned this Nov 25, 2026

@Xarishark Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked at this after the merge. It's the right fix: both test setups now include what the other PR added (stillChecked from #403, and S.uninstalling / parentId from #573), matching what checkUpdates really calls in ui/app.js. Nothing is skipped or loosened, and the tests still run the real checkUpdates. CI passed on all four jobs.

A small gap, not for this PR: the parentId stub returns the same id, so these tests don't cover a child install whose parent is being uninstalled. That case belongs in #573's own tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants