Generate a test from a prompt
generate_testGenerate a node:test file from a prompt or ticket, with a test block for each described behaviour, ready to write under test/.
Instructions
Generate a FULL node:test file (path + content) from a prompt and/or a ticket — one test() block per described behaviour, not just the single boilerplate stub. Optionally imports a target module. Read-only: returns the file for you to write under test/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | Import specifier for the module under test, e.g. ../server/crm.js. | |
| prompt | No | Plain-English behaviours to test (one per line or 'and'-separated). Optional if ticket is given. | |
| ticket | No | Seed title/description/filename from this ticket. | |
| project | Yes |