fix(bun) :: consume plugin.bun#603
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 (2)
📝 WalkthroughWalkthroughCalls each generated plugin's optional ChangesBun setup hook invocation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/bun/index.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. test/unit-tests/bun/nested.test.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox. 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 `@test/unit-tests/bun/nested.test.ts`:
- Around line 141-163: The test only exercises bun.setup so onResolve/onLoad
registration never runs; update the test to provide/verify standard hook
registration by adding dummy onResolve/onLoad hooks to the plugin declaration
(e.g. pass bun: { setup: bunSetup, onResolve: bunOnResolve, onLoad: bunOnLoad }
when calling createUnplugin) or alternatively add a separate plugin that
supplies onResolve/onLoad, then call bunPlugin.setup(mockBuild) and assert
callOrder includes 'onResolve'/'onLoad' after 'plugin.bun.setup' and that
mockBuild.onResolve/onLoad were called; reference createUnplugin, bunSetup,
bunPlugin.setup, mockBuild, and callOrder to locate and change the test.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: f464f193-446b-4de0-a48e-ece92194b208
📒 Files selected for processing (2)
src/bun/index.tstest/unit-tests/bun/nested.test.ts
19ba784 to
4d08c7d
Compare
commit: |
I am volunteering and working on getting a bun plugin for TanStack/router and found this bug.
plugin.bunescape hatch is typed but never consumed #602Summary by CodeRabbit