Skip to content

Comments

E2E test for migration#6

Merged
huozhi merged 2 commits intomainfrom
jude/eval
Oct 15, 2025
Merged

E2E test for migration#6
huozhi merged 2 commits intomainfrom
jude/eval

Conversation

@gaojude
Copy link
Contributor

@gaojude gaojude commented Oct 15, 2025

To prevent regression as we iterate on the prompts, we are adding some E2E tests to check that AI agents can produce a succesfully migrated app given the prompts and MCP tools.

Since the eval step is long and expensive (as it runs the actual agentic workflow from start to finish that costs real tokens), we do not run it in CI yet, and you need to supply your own Anthropic API key in order to run the pnpm test command.

Example test run output:

stdout | test/e2e/upgrade.test.ts > Next.js 14 → 16 Upgrade via MCP > should upgrade Next.js 14 project to Next.js 16 using Claude Agent SDK

✅ Completed after 72 messages

Verifying package.json has Next.js 16...
Running pnpm install...
Building upgraded project...
Test passed!

stdout | test/e2e/upgrade.test.ts > Next.js 14 → 16 Upgrade via MCP
Cleaning up temp directory...

 ✓ test/e2e/upgrade.test.ts (1 test) 273013ms
   ✓ Next.js 14 → 16 Upgrade via MCP > should upgrade Next.js 14 project to Next.js 16 using Claude Agent SDK  266328ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  01:46:24
   Duration  273.28s (transform 23ms, setup 0ms, collect 39ms, tests 273.01s, environment 0ms, prepare 38ms)

@socket-security
Copy link

socket-security bot commented Oct 15, 2025

@gaojude gaojude requested a review from huozhi October 15, 2025 05:58
@huozhi huozhi merged commit dbd7934 into main Oct 15, 2025
2 checks passed
@huozhi huozhi deleted the jude/eval branch October 15, 2025 15:49
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