Repository navigation
Tests: the update check tests know about both #403 and #573 - #583
Merged
Merged
Conversation
#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]>
1 task done
Xarishark
reviewed
Nov 25, 2026
Xarishark
left a comment
Collaborator
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Main's UI tests fail (9 of 1,030) since #403 and #573 both landed. Each changed
checkUpdatesand was tested against a main without the other:stillChecked; Uninstall: the core keeps everything else out while a game's folder goes (#507) #573's test (tests/auto-update-all.test.cjs) doesn't load it.S.uninstallingandparentId; Ignore update checks superseded by release choices #403's test (tests/update-check-race.test.cjs) doesn't provide them.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.cjspasses: 1,030 of 1,030 (main: 9 failing)Checklist
Generated by Claude Code