test(svelte-query/containers): add test for deleting a non-existent property#10992
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a test covering ChangesRaw ref delete-property behavior
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 6539a6f
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
🎯 Changes
Add a unit test for
createRawRefinpackages/svelte-query/src/containers.svelte.tscovering thedeletePropertytrap when the property does not exist.This complements the existing
deletePropertycoverage (deleting an existing key) by asserting that deleting a non-existent property returnsfalseand leaves the reference unchanged, matching the file's per-trap test pattern (has,ownKeys,getOwnPropertyDescriptor).✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit