Pipeline Crm M6 1 Db Isolation
Path:
loom-builder/prompts/pipeline-crm-m6-1-db-isolation.mdRelative: prompts/pipeline-crm-m6-1-db-isolation.mdSubproject: loom-builderCategory: dispatch-promptsLines: 23Bytes: 2,929Imports: 0Exports: 0
Content Preview
- # pipeline-crm M6.1 — Test/DB Isolation Remediation
- ## INTENT
- Critical defect in PipelineCRM at `/home/mikes/base44CRM/pipeline-crm`: running `bun test` DESTROYS the real dev database. `local.db` previously held the full 17-table migrated schema + seeded data; after a test run it contains ONLY a `leads` table with 35 rows (import-test fixture data written to the real DB). Root cause: `src/db/index.ts` opens relative path `'local.db'` and at least one test imports/uses the real client (or runs s