Skip to content

test(e2e): fix stale Cursor rule .md assertion broken by #349 - #355

Merged
jeff-r2026 merged 1 commit into
mainfrom
fix/cursor-mdc-e2e-assertion
Aug 27, 2026
Merged

jeff-r2026 merged 1 commit into
mainfrom
fix/cursor-mdc-e2e-assertion

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Problem

The latest CI run on main failed in the E2E (GitHub provider, full surface) job:

src/__tests__/e2e/project-agent-cold-start.test.ts:169
"tracks the exact target set across sequential and recreated agent roots"
→ AssertionError: expected false to be true

Root cause

#349 (fix(rules): write Cursor rules as .mdc with derived frontmatter) moved Cursor rules from .md to .mdc (ruleFileExtensionForTool returns .mdc for cursor). But this E2E still asserted the old path:

expect(fs.existsSync(path.join(projectRoot, '.cursor', 'rules', 'team-rule.md'))).toBe(true);

Since the file is now team-rule.mdc, existsSync returns false and the assertion fails. The .claude/rules/team-rule.md assertion (line 157) still passes because only Cursor moved to .mdc.

Fix

Update the single stale assertion to expect team-rule.mdc.

Test Plan

  • npm run build
  • TEAMAI_TEST_PROVIDER=github npx vitest run --config vitest.e2e.config.ts src/__tests__/e2e/project-agent-cold-start.test.ts → 5/5 pass

…-up)

#349 moved Cursor rules from .md to .mdc, but the project-agent
cold-start E2E still asserted .cursor/rules/team-rule.md, so the
GitHub full-surface E2E job failed on that stale assertion.
@jeff-r2026
jeff-r2026 merged commit 6bb477c into main Aug 27, 2026
5 checks passed
@jeff-r2026
jeff-r2026 deleted the fix/cursor-mdc-e2e-assertion branch August 27, 2026 14:33
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
…follow-up) (Tencent#355)

Tencent#349 moved Cursor rules from .md to .mdc, but the project-agent
cold-start E2E still asserted .cursor/rules/team-rule.md, so the
GitHub full-surface E2E job failed on that stale assertion.
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.

1 participant