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

Abierto
#25,781 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
nextjs, nodejs, typescript
Área
testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
8.8k
Forks
1.9k
Merge medio
1 d 8 h
PR fusionados (30 d)
744

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/sentry-javascript

Todos los issues de getsentry/sentry-javascript

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.