Skip to content

Unit suites print unasserted output (act warnings, a stray comment mark, a changed Yjs client id) #612

Closed

Description

@SSFSKIM

What

Several unit suites print output that no test asserts and no one reads. Seen while building UX wave U10a (#582) in suites that landing ran but did not change, on master d7ca414ae as well as on the branch, so it predates that landing:

  • React "not wrapped in act(...)" warnings;
  • y-prosemirror's line naming a comment--stray mark;
  • Yjs's line about a changed client id.

The output hides real warnings in a run's log and makes a failed run slower to read.

Change

For each source, either fix the cause (wrap the update in act, give the fixture a mark the schema knows, keep one client id per document in the test) or, where the line is the library's and expected, assert it in the test that provokes it and keep it out of the log.

Acceptance

  • vitest run over src/artifacts, src/engine-host/documents, src/renderer/src/tools/document and the test folders that import them prints none of the three kinds of line above.
  • No product code changes behaviour; a library's log line is not silenced globally.

Not in scope

A repo-wide rule that fails a test on any console output.

Source: the residue of UX wave U10a's build (hand-back of 2026-11-13 UTC). The exact files are found by running the suites named above and reading their output.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 13, 2026
  2. SSFSKIM commented on Nov 13, 2026

    @SSFSKIM
    OwnerAuthor

    Further sightings from the UX wave's branches (2026-11-13), same class: a passing unit run prints errors or warnings nobody asserts, which hides a new one. Each predates the branch that reported it; none was compared against the base line by line.

    • src/main/browser/index.test.ts: '[browser]' warnings on stderr from unchanged cases (reported by U12a).
    • Concurrent-rendering errors about a missing terminal token, which master prints too (U12a).
    • src/renderer/src/panel/summary/PushState.test.tsx: 'Sign in types gh auth login into a Terminal tab' spies on addTool without registering a Terminal tool, so every run prints 'panel: no tool registered as terminal' (U8b, U13a). Remedy: register a terminal probe in the case.
    • Composer.test.tsx and Editor.test.tsx: act and flushSync warnings; Tab.test.tsx, resource.test.tsx and useSetupIntent.test.tsx also print (U13a).
    • CommandPalette.test.tsx: act() warnings (U7a).

    A related timing case, not output: app/Shell.panel.test.tsx 'an addTool before hydration writes nothing' relies on the real 250 ms write-back not having fired and failed once under a loaded build VM (U8b). Remedy: fake timers.

    Closing condition as before: the expected lines are captured and asserted (or the cause removed), so that a clean run prints nothing unasserted.

    Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)

  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  4. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: batch 7, group D

  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  6. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: batch 7, PR #804

  7. removed
    status:in-review
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions