LibreChat/client/test
Marco Beretta 62cc2ffc19
🧵 refactor: Render the Package Message List by Default in ChatScreen (#17753)
* refactor: Move the Messages View Provider Into @librechat/chat

* refactor: Render the Package Message List by Default in ChatScreen

* fix: Drop the Rail's IntersectionObserver Guard for a Package Spec Stub

Nothing renders the rail without a browser: its observer starts in an effect, which never runs in a server render. The guard existed only because jsdom lacks the API, so jsdom now gets inert observers and matchMedia from the package's jest setup, and the spec's own stubs, which no longer matched the DOM lib's IntersectionObserver type, are gone.

* test: Scroll a Sidebar Row Into View Before Dragging It

A row under the fold has no pixel the mouse can press, so the drag selected text instead. Whether a run hit it depended on which earlier specs shared its shard and left chats in the Running and Finished sections.

* test: Give the Client Specs an Inert IntersectionObserver

With the rail's guard gone, a client spec that renders the message list reaches the observer jsdom lacks. The shared setup provides an inert one, as the package's jest setup does, and the child-thread spec's partial client mock gains the rem scale hook the rail reads.

* chore: Retest Against Current Dev

* test: Give the Test Messages Host the Row Hook Members

The messages host gained the assistant, added-conversation, streamed-attachment and feedback hooks when the row hooks moved into the package, so the shared test host supplies them too.
2026-11-05 22:35:15 +01:00
..
babel-plugin-transform-import-meta-hot.cjs
canvasMock.ts 🎨 feat: Theme-Adaptive SVG Support for Custom MCP and Group Icons (#13817) 2026-09-04 10:49:43 -04:00
chatHost.tsx 🧰 refactor: Move useChatHelpers and ChatProvider into the Chat Package (#17446) 2026-10-26 22:47:11 +01:00
composerHost.tsx ⌨️ refactor: Move Composer Input Controls Into the Chat Package (#17551) 2026-10-30 00:24:35 +01:00
dropdown.ts
harness.tsx 🧭 refactor: Move the Chat Surface, Task Panel and Activity Group Into @librechat/chat (#17669) 2026-10-31 22:09:52 +01:00
intersectionObserver.mock 🧵 refactor: Render the Package Message List by Default in ChatScreen (#17753) 2026-11-05 22:35:15 +01:00
itemFactories.ts
layout-test-utils.tsx
localStorage.mock
matchMedia.mock
messagesHost.tsx 🧵 refactor: Render the Package Message List by Default in ChatScreen (#17753) 2026-11-05 22:35:15 +01:00
mockMorphIcon.tsx 🧹 refactor: Remove Dead Client Hooks, Store Modules and Utilities (#17111) 2026-10-15 12:22:13 +02:00
polyfills.js
resizeObserver.mock
setupTests.js 🧵 refactor: Render the Package Message List by Default in ChatScreen (#17753) 2026-11-05 22:35:15 +01:00
steerHost.tsx 🧷 refactor: Require a Mounted Steer Host Instead of a Module Default (#17164) 2026-10-18 20:28:50 +02:00
streamHost.tsx 🛰️ refactor: Stream Assistants Turns Through @librechat/chat (#17697) 2026-11-02 18:36:32 +01:00
turnServices.ts 🏷️ refactor: Resolve the Turn Sender, Reasoning Override and Launch in @librechat/chat (#17762) 2026-11-03 21:43:31 +01:00