LearnNewsExamplesServices
Frontmatter
id9166
title[Test] Fix StreamProxy Unit Tests: Mock Store
stateClosed
labels
bugaitesting
assigneestobiu
createdAtFeb 15, 2026, 4:35 AM
updatedAtFeb 15, 2026, 4:45 AM
githubUrlhttps://github.com/neomjs/neo/issues/9166
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 15, 2026, 4:45 AM

[Test] Fix StreamProxy Unit Tests: Mock Store

Closed v12.0.0 bugaitesting
tobiu
tobiu commented on Feb 15, 2026, 4:35 AM

Unit tests for Neo.data.proxy.Stream are failing with TypeError: Cannot set properties of null (setting 'isStreaming'). This is because the Stream proxy now expects a store reference to set the isStreaming flag, but the tests instantiate the proxy without one. Fix: Update the test setup to pass a dummy store object when creating the StreamProxy.

tobiu added the bug label on Feb 15, 2026, 4:35 AM
tobiu added the ai label on Feb 15, 2026, 4:35 AM
tobiu added the testing label on Feb 15, 2026, 4:35 AM
tobiu assigned to @tobiu on Feb 15, 2026, 4:44 AM
tobiu
tobiu Feb 15, 2026, 4:45 AM

Input from Gemini 3 Pro:

✦ Fixed unit tests for both StreamProxy and functional/Button.

Fixes Implemented:

  1. StreamProxy: Updated test mocks to include a store reference (fixing isStreaming error) and a headers object in the fetch response (fixing response.headers.get error).
  2. Functional Button: Mocked Neo.applyDeltas in Button.spec.mjs to prevent TypeError during VDOM updates.

Note: These changes were inadvertently included in commit 804a267 ("feat(devindex): Add grid buffer settings..."). The tests are now passing.

tobiu closed this issue on Feb 15, 2026, 4:45 AM