Skip to content

test(profile): fix memoryWrite mocks broken by #1336 — unbreak main - #1341

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/memorywrite-test-mock
Aug 30, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/memorywrite-test-mock

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

main has been red since d17f95f (#1336): the profile route's installation query became find().sort().select().lean() and the route now requires AgentProfile; agentProfile.memoryWrite.test.js mocked neither, so the handler 500'd (sort is not a function) and every PR's required check fails behind it. Test-only fix — the route itself is correct.

🤖 Generated with Claude Code

https://claude.ai/code/session_013pc6nGXRS8mHvrwcXMSRDK

main has been red since d17f95f: the route chain became
find().sort().select().lean() and requires AgentProfile; this suite's
mocks predate both, so the handler 500'd with 'sort is not a function'.
Test-only fix; the route is correct.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013pc6nGXRS8mHvrwcXMSRDK
@lilyshen0722
lilyshen0722 merged commit 8c46af3 into main Aug 30, 2026
11 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/memorywrite-test-mock branch August 30, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant