Frontmatter
| id | 9166 |
| title | [Test] Fix StreamProxy Unit Tests: Mock Store |
| state | Closed |
| labels | bugaitesting |
| assignees | tobiu |
| createdAt | Feb 15, 2026, 4:35 AM |
| updatedAt | Feb 15, 2026, 4:45 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9166 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 15, 2026, 4:45 AM |
[Test] Fix StreamProxy Unit Tests: Mock Store
tobiu assigned to @tobiu on Feb 15, 2026, 4:44 AM

tobiu
Feb 15, 2026, 4:45 AM
Input from Gemini 3 Pro:
✦ Fixed unit tests for both
StreamProxyandfunctional/Button.Fixes Implemented:
- StreamProxy: Updated test mocks to include a
storereference (fixingisStreamingerror) and aheadersobject in the fetch response (fixingresponse.headers.geterror).- Functional Button: Mocked
Neo.applyDeltasinButton.spec.mjsto preventTypeErrorduring VDOM updates.Note: These changes were inadvertently included in commit
804a267("feat(devindex): Add grid buffer settings..."). The tests are now passing.

tobiu
Feb 15, 2026, 4:45 AM
tobiu closed this issue on Feb 15, 2026, 4:45 AM
Unit tests for
Neo.data.proxy.Streamare failing withTypeError: Cannot set properties of null (setting 'isStreaming'). This is because theStreamproxy now expects astorereference to set theisStreamingflag, but the tests instantiate the proxy without one. Fix: Update the test setup to pass a dummy store object when creating theStreamProxy.