feat(runtime-utils): add spy option to mount + render helpers - #1762
Conversation
commit: |
📝 WalkthroughWalkthroughAdded an opt-in Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/runtime-utils/utils/suspended.ts`:
- Line 26: Correct the JSDoc default annotation near the suspended utility’s
documented option by removing the extra trailing quote, so the default is
documented as '/'.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 61641af9-ecc7-49e7-be06-4842af0d3ca2
📒 Files selected for processing (6)
examples/app-vitest-browser/components/CustomRandom.vueexamples/app-vitest-browser/test/mount-suspended.spec.tsexamples/app-vitest-full/components/CustomRandom.vueexamples/app-vitest-full/tests/nuxt/mount-suspended.spec.tsexamples/app-vitest-full/tests/nuxt/render-suspended.spec.tssrc/runtime-utils/utils/suspended.ts
🔗 Linked issue
resolves #763
📚 Description
Added
spyoption to mount and render helpers to allow mocking component methods.