Skip to content

test: add unit tests for InMemoryRuntimeStateStore put/get round trips (Issue #109) - #199

Open
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-109-state-store-roundtrip
Open

test: add unit tests for InMemoryRuntimeStateStore put/get round trips (Issue #109)#199
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-109-state-store-roundtrip

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Adds unit tests verifying InMemoryRuntimeStateStore put/get semantics including type preservation, overwrite behavior, null/zero handling, and key isolation.

Tests Added

  • ✅ String and object values stored and retrieved correctly
  • ✅ Undefined returned for non-existent keys
  • ✅ Subsequent puts overwrite existing values
  • ✅ Null and zero preserved as valid stored values
  • ✅ Multiple keys isolated from each other

Verification

All 6 tests pass locally via npx vitest run tests/state/runtime-state-store.test.ts.

Closes #109

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.

[Bounty: $55] Add unit tests for InMemoryRuntimeStateStore put/get round trips

1 participant