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

Aperta
#310 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, typescript
Ambito
cli, databases, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
25
Fork
4
Merge medio
18h 22m
PR unite (30g)
34

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di prisma/prisma-cli

Tutte le issue di prisma/prisma-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.