Cursor Composer: Generate a Test Harness for Untested Code
Builds a meaningful test suite around legacy code by inferring its real behavior contract before touching it.
The Prompt
Already a member? Sign in.
Related prompts
Cursor Composer: Split a Route Handler Into Layered Services
Refactors a bloated route handler into clean controller, service, and data-access layers without changing behavior.
Cursor Composer: Extract Inline SQL Into a Query Layer
Moves scattered raw SQL strings out of business logic and into a structured, testable query module without breaking anything.
Cursor Composer: Harden Every Input Boundary in a Module
Audits every external input entry point in a module and generates validation, normalization, and rejection code.
Cursor Composer: Split a God Component Without Breaking Props
Multi-file Composer prompt that decomposes a bloated component into smaller ones while preserving the exact external prop contract.
