Skip to content

ChatView.dom.test.ts leaks a @tanstack/virtual timer past jsdom teardown (CI flake) #406

Description

@khaliqgant

Intermittent CI failure: all tests pass but vitest reports one unhandled error — ReferenceError: window is not defined from @tanstack/virtual-core Timeout._onTimeout firing after the jsdom environment is torn down (originates in ChatView.dom.test.ts). Cost a false-red on #401 (green on rerun). Fix: dispose/flush the virtualizer (or advance+clear fake timers) before env teardown.

Activity

  1. added a commit that references this issue on Jul 17, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions