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

Offen
#25,781 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Bereich
testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
8.8k
Forks
1.9k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
744

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-javascript

Alle Issues in getsentry/sentry-javascript

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.