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

Open
#295 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli, testing

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
26
Forks
4
Avg merge
12h 11m
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/prisma-cli

All issues in prisma/prisma-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.