Add unit tests for WorkersKvStore - #987
Conversation
Test get(), set(), and delete(), TTL clamping with expiration metadata, and prefix listing over JSON-encoded keys using an in-memory mock of the Workers KV namespace. The file runs under Vitest, so it is excluded from deno test in packages/cfworkers/deno.json. Closes fedify-dev#874 Closes fedify-dev#875 Changelog: none Assisted-by: Claude Code:claude-fable-5
✅ Deploy Preview for fedify-json-schema canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request adds Deno test exclusion configuration and comprehensive Vitest coverage for ChangesWorkers KV test coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Test get(), set(), and delete(), TTL clamping with expiration metadata, and prefix listing over JSON-encoded keys using an in-memory mock of the Workers KV namespace.
The file runs under Vitest, so it is excluded from deno test in packages/cfworkers/deno.json.
Closes #874 Closes #875
Changelog: none
Assisted-by: Claude Code:claude-fable-5