Repository navigation
test(e2e): fix stale Cursor rule .md assertion broken by #349 - #355
Merged
Merged
Conversation
…-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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The latest CI run on
mainfailed in the E2E (GitHub provider, full surface) job:Root cause
#349 (
fix(rules): write Cursor rules as .mdc with derived frontmatter) moved Cursor rules from.mdto.mdc(ruleFileExtensionForToolreturns.mdcforcursor). But this E2E still asserted the old path:Since the file is now
team-rule.mdc,existsSyncreturnsfalseand the assertion fails. The.claude/rules/team-rule.mdassertion (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 buildTEAMAI_TEST_PROVIDER=github npx vitest run --config vitest.e2e.config.ts src/__tests__/e2e/project-agent-cold-start.test.ts→ 5/5 pass