Skip to content

test(server): hoist writeStudioConfig import in olive.stream tests - #180

Closed
tonythethompson wants to merge 1 commit into
MCP_hardenfrom
cursor/olive-stream-import-order-5193
Closed

tonythethompson wants to merge 1 commit into
MCP_hardenfrom
cursor/olive-stream-import-order-5193

Conversation

@tonythethompson

@tonythethompson tonythethompson commented Aug 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

writeStudioConfig was imported mid-file after vi.mock. Move it into the module’s top import block.

Notes

Vitest hoists vi.mock, so the in-memory ../config.ts fake remains active under vitest.server.config.ts. Usage in beforeEach / afterEach / cases is unchanged.

Validation

pnpm vitest run --config vitest.server.config.ts src/server/routes/olive.stream.test.ts
# 15 passed
Open in Web Open in Cursor 

Review in cubic

Move the static config import into the top import block; Vitest still
hoists vi.mock so the in-memory StudioConfig fake remains active.

Co-authored-by: Anthony Thompson <github@trackdub.com>
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

Deployment failed for project olive-studio with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/trackdub?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@tonythethompson, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 53 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: a77b0741-6c0e-48c9-bead-c44af2a2235e

📥 Commits

Reviewing files that changed from the base of the PR and between 0b32080 and d761d4b.

📒 Files selected for processing (1)
  • src/server/routes/olive.stream.test.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tonythethompson

Copy link
Copy Markdown
Owner Author

Superseded by #184 (single squash onto MCP_harden / #171).

@tonythethompson
tonythethompson deleted the cursor/olive-stream-import-order-5193 branch August 8, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants