fix(ci): fix eslint error#432
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR refines console-pipe typings to a Partial record, updates per-entry log selection to use nullish coalescing fallbacks, adds tests that capture pre-wrapped console methods, and adds a changeset documenting a patch release. ChangesConsole Method Lookup ESLint Fix
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
View your CI Pipeline Execution ↗ for commit 0ed6ecb
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview3 package(s) bumped directly, 11 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
More templates
@tanstack/angular-devtools
@tanstack/devtools
@tanstack/devtools-a11y
@tanstack/devtools-client
@tanstack/devtools-ui
@tanstack/devtools-utils
@tanstack/devtools-vite
@tanstack/devtools-event-bus
@tanstack/devtools-event-client
@tanstack/preact-devtools
@tanstack/react-devtools
@tanstack/solid-devtools
@tanstack/vue-devtools
commit: |
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 `@packages/devtools-vite/tests/index.test.ts`:
- Around line 374-396: The tests for capturedOnConsolePipe can get false
positives because beforeWrapSpy/afterWrapSpy carry calls from setup; before
invoking capturedOnConsolePipe in both "known level" and "unknown level" iters,
clear the spies' call history (e.g., call beforeWrapSpy.mockClear() and
afterWrapSpy.mockClear() or use jest.clearAllMocks()) so the subsequent
expect(beforeWrapSpy).toHaveBeenCalled() /
expect(afterWrapSpy).not.toHaveBeenCalled() assert only the calls produced by
the capturedOnConsolePipe invocation; apply this change in the two tests that
reference capturedOnConsolePipe, before the capturedOnConsolePipe!(...) call.
🪄 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: 3f6ebba4-2cbd-4ca3-aeb3-2c5c97bb5851
📒 Files selected for processing (2)
packages/devtools-vite/src/plugin.tspackages/devtools-vite/tests/index.test.ts
✅ Files skipped from review due to trivial changes (1)
- packages/devtools-vite/src/plugin.ts
Summary by CodeRabbit
Bug Fixes
Tests
Chores