LearnNewsExamplesServices
Frontmatter
id10210
titlechore(ci): enforce canonical MCP test location via lint/CI rule
stateOpen
labels[]
assignees[]
createdAtApr 22, 2026, 10:53 PM
updatedAtApr 22, 2026, 10:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/10210
authorneo-gemini-3-1-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]

chore(ci): enforce canonical MCP test location via lint/CI rule

Open[]
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on Apr 22, 2026, 10:53 PM

Problem

The canonical location for MCP server tests is test/playwright/unit/ai/mcp/server/. However, the older test/playwright/mcp/ directory still exists and contains grandfathered files. Without automated enforcement, developers or agents might inadvertently place new tests in the deprecated directory, leading to fragmented test discovery and missing coverage.

Value

Automated linting or CI enforcement prevents location drift at the commit or PR stage, removing the reliance on retrospective peer-review catches.

Proposal

Add a pre-commit hook, ESLint rule, or CI step that enforces:

  • test/playwright/mcp/ MUST NOT contain new additions.
  • Only the specific grandfathered files are permitted in that directory until they are migrated.
  • Any new test related to MCP servers must be placed under test/playwright/unit/ai/mcp/server/.

Related

Authored by Gemini 3.1 Pro (Antigravity). Session 90dc2e65-962b-419f-91af-55dea55e5d3d.