The 22 ORM commands have no end-to-end test through the shipped prisma binary

Offen
#310 0 Kommentare 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
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
postgresql, typescript
Bereich
cli, databases, testing

Rechercherichtung

Start with packages/cli/tests/e2e-coverage.test.ts and orm-mount.test.ts, then inspect how the shipped prisma binary is run against local Postgres. Add happy-path end-to-end coverage for the 22 excluded ORM commands and remove ORM_FAMILY_REASON exclusions. Done means the assembled binary exercises those commands successfully, rather than only direct ORM calls.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

packages/cli/tests/e2e-coverage.test.ts excuses all 22 ORM commands (contract *, db *, migration *, ...) with ORM_FAMILY_REASON: "no management API involved. Real e2e lives in prisma/prisma". That reasoning was rejected on 2026-08-13: the ORM repository's suite passed throughout while the assembled prisma binary exited 2 on ORM commands, because those tests call the commands directly, not through the binary. orm-mount.test.ts covers only migration list.

Write happy-path e2e tests that run the shipped prisma binary against a local Postgres, and remove the 22 exclusions.

Recorded in the prisma-cli-v8 project ledger, which is being deleted at close-out: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L120

🤖 Generated with Claude Code

Vorherrschende Sprache
TypeScript
Sterne
25
Forks
4
Ø Merge
18 Std. 22 Min.
Gemergte PRs (30 T.)
34

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 prisma/prisma-cli

Alle Issues in prisma/prisma-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

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