Skip to content

test: cover FME rollout prompt and schema sync reuse field - #855

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-8752
Draft

test: cover FME rollout prompt and schema sync reuse field#855
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-8752

Conversation

@cursor

@cursor cursor Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for recently merged FME native-scope rollout prompt changes and schema sync #823.

Risky behavior now covered

Test files added/updated

  • tests/prompts/feature-flag-rollout.test.ts (new)
  • tests/schemas/schema-bundle-contract.test.ts (updated)

Why these tests materially reduce regression risk

Agents rely on MCP prompts for multi-step FME rollout workflows. A stale caveat or missing scope validation would cause failed rollouts or wrong API paths. The schema contract test prevents silent loss of the reuse field on DB schema apply steps during upstream sync.

Production cleanup

Removed dead nativeModeCaveat variable left in src/prompts/feature-flag-rollout.ts after PR #838 removed its usage.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (test coverage)

Checklist

  • pnpm test passes (24 targeted tests)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes (registry/tool counts unchanged)
Open in Web View Automation 

Add regression tests for recent FME native-scope prompt changes:
- dual-mode scope validation (workspace_id vs org_id+project_id)
- rollout workflow resource references without stale native-mode caveats

Lock in schema sync #823 DBApplySchemaStepInfo reuse field contract.
Remove dead nativeModeCaveat code left after rollout status shipped.

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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