Next.js e2e: Vercel AI tests are disabled since v11

未关闭
#25,781 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
领域
testing

调研方向

Start in dev-packages/e2e-tests/test-applications/nextjs-16/tests/ai-test.test.ts and ai-error.test.ts to see the test.fixme lines, then compare with the Node integration tests that already cover ai v4–v7 as a working reference. In each of the nextjs-15, nextjs-16, nextjs-16-static, nextjs-16-streaming and nextjs-16-tunnel apps, bump ai to ^7, add a route handler that calls generateText and streamText with MockLanguageModelV3, and re-enable the disabled tests. Done means those e2e suites run green with no test.fixme left.

由索引模型根据 Issue 内容生成。

描述

Next.js Tests vercel ai
Description

No e2e test covers AI SDK tracing in a Next.js app. #22501 marked the AI tests in nextjs-15 and nextjs-16 as test.fixme, because those apps pin ai@^3 and #22701 dropped v3 support. nextjs-16-static (#23834) copied the disabled tests:

  • nextjs-16/tests/ai-test.test.ts and ai-error.test.ts, the same two in nextjs-15 and nextjs-16-static
  • nextjs-16-streaming and nextjs-16-tunnel also pin ai@^3, with no AI tests

The Node integration tests cover ai v4–v7. Nothing covers the Next.js-specific path: ai bundled into a route handler by Turbopack or webpack, then instrumented at runtime.

Next step: upgrade these apps to ai@^7 (MockLanguageModelV3), call generateText and streamText from a route handler, and re-enable the tests. Related: #24751.

主要语言
TypeScript
星标
8.8k
派生
1.9k
平均合并
1 天 8 小时
30 天内合并 PR
744

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。