pnpm --filter @prisma/cli test uses whatever engine build is on disk, so engine edits can pass untested

Aperta
#295 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli, testing

Direzione di ricerca

Start with packages/cli/package.json and packages/cli/vitest.config.ts, then inspect the engine exports that point to ./dist. Run pnpm --filter @prisma/cli test after an engine edit without rebuilding it to reproduce the stale-engine behavior. Done means the CLI test command exercises the current engine changes rather than an older build.

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

Descrizione

packages/cli/package.json runs pnpm run build && vitest run, which builds the CLI but not the engine. The engine's exports point at ./dist, and packages/cli/vitest.config.ts has no alias to the engine's source. After an engine edit without an engine rebuild, the CLI suite tests the old engine and can pass.

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

🤖 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.