Skip to content

test(desktop): drop a stray link book save and spell out merge notices - #3796

Merged
LHagfoss merged 1 commit into
mainfrom
test/desktop-quiet-link-book
Nov 15, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
test/desktop-quiet-link-book

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

  • Quieter test runs: a link book save debounced in one test fired after the next test had disconnected, and printed "the link book was not saved … The server is not connected" with a stack trace in four test files (projects.test.ts and others). It read like a failure in CI logs. resetForTests now calls a new resetLinkBook() that drops the pending save and the engine flag.
  • A test that could not fail: the fix(desktop): show merge results as automatic notices #3794 merge notice test built its expected line with the same str(result.detail) || str(obj(result.error)?.message) expression as mergeResultNotice. It now names each expected line as a literal, and adds the state-only and empty-result fallbacks the code has but the old test never reached.

Changelog

none

Testing

bun run check: all tests pass, and bun test src no longer prints the link book stack traces.

resetForTests now drops the link book's pending save, which fired after the next test had no engine and printed a 'The server is not connected' stack trace in four files. The merge notice test names each expected line instead of rebuilding it with the code's own expression, and covers the state and empty fallbacks.
@github-actions github-actions Bot added the test Tests and test infrastructure label Nov 15, 2026
@LHagfoss
LHagfoss merged commit 6728c73 into main Nov 15, 2026
9 checks passed
@LHagfoss
LHagfoss deleted the test/desktop-quiet-link-book branch November 15, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Tests and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant