Skip to content

test: add unit tests for createMessage#6847

Open
Jeniter wants to merge 1 commit into
mainfrom
test/create-message
Open

test: add unit tests for createMessage#6847
Jeniter wants to merge 1 commit into
mainfrom
test/create-message

Conversation

@Jeniter

@Jeniter Jeniter commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a focused unit-test file for createMessage() in app/store/chat.ts.

Covered behaviour:

  • fills in default role, content, id and date
  • lets overrides win over the defaults
  • assigns a unique id to each message
  • preserves an explicitly provided id

Notes

  • Additive only — no existing files are modified or removed.
  • yarn test:ci passes locally.

Part of a series of small QA-only PRs adding unit coverage for pure helpers.

Adds a small, focused, additive unit-test file (test/create-message.test.ts).
No existing files are modified or removed. yarn test:ci passes locally.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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