Beyond empty-database testing

Your migration passed.
Production still might not.

Existing rows, relationships, identities, files, and migration history are where risky changes break. Rehearse them locally before you deploy.

Monthly downloads of @rehearsal-db/core from npm
✓ Reviewed baseline✓ Exact migrations✓ Your app proof
01

Install it

npm install --save-dev @rehearsal-db/core

Why an empty database is not enough#

Rehearsal restores a reviewed, sanitized baseline into a disposable local database, applies the migrations you approve and runs your application's proof. Existing rows and relationships expose problems that an empty-database test can miss.

Use the free MIT CLI or VS Code Starter, free indefinitely for personal and commercial development without an account, card or trial.

Pick the path that fits today#

I want to… Go here
See what ships and what comes next Released capabilities and Roadmap
Rehearse an owned SQLite file SQLite workflow and limits
Set up my own project Getting started
Use the free visual workbench in VS Code Install VS Code Starter
Try Rehearsal without touching my app Hands-on tutorial
Check changes, compatibility or updates Releases and updates
Understand what makes a copy safe Baselines and Sanitization
Look up a command or setting CLI commands and Configuration
Reduce Docker and Supabase resource use Container runtime lifecycle
Add editor and compiler type checks TypeScript
Fix something that did not work Troubleshooting

The short version#

  1. Prepare a safe baseline.
  2. Review the exact candidate migrations.
  3. Run them in a disposable local database.
  4. Prove the application behavior that matters.
  5. Open the sandbox for hands-on testing.

Safety is part of the workflow#

Normal rehearsals stay local and deploy nothing. Checksums, exact approval digests and owned cleanup protect separate boundaries; your proof determines which behavior is tested. Start with synthetic data. Read Production-shaped preparation before granting any source access.

Still unsure where to begin?#

If your project already has Core installed, open its interactive guide below. Otherwise, begin with installation.

bash
npx rehearsal

It reads the project state, explains the next safe step, and keeps the full command reference available when you need it.

Type a command, concept, or error message.