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

Aberta
#25,781 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
nextjs, nodejs, typescript
Domínio
testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
8.8k
Forks
1.9k
Merge médio
1d 8h
PRs com merge (30d)
744

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-javascript

Todas as issues de getsentry/sentry-javascript

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.