Skip to content

Conversation

@rfrenoy
Copy link
Contributor

@rfrenoy rfrenoy commented Jan 27, 2026

Summary

  • Tests modifying INTERNAL_MCP_SERVERS now restore original config even when assertions fail
  • Added afterEach cleanup in mcp_server_view_resource.test.ts
  • Wrapped test body in try/finally in index.test.ts for guaranteed cleanup
  • Exported InternalMCPServerEntryBase type for proper typing in tests

Test plan

  • Type-check passes
  • Pre-commit hooks pass

🤖 Generated with Claude Code

Tests that modify INTERNAL_MCP_SERVERS need to restore the original
config after each test, even if assertions fail. Added afterEach
cleanup and try/finally blocks to ensure global state is restored.

Also exported InternalMCPServerEntryBase type for use in tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Review Updated (UTC)
playground Ignored Ignored Preview Jan 27, 2026 3:17pm
storybook Ignored Ignored Preview Jan 27, 2026 3:17pm

Request Review

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