Skip to content
Back to templates

unit-test-generator

@randalolson/unit-test-generator
Safety-checked

Use when you need real unit tests for a function, class, or module and want them generated, verified, and ready to merge. Describe the target in plain language; the workflow handles discovery and writing, then confirms the tests pass, lift coverage, and lint cleanly before handoff.

Outcome

Unit tests for the named target land in the project, exercise at least one happy path and at least one error path, raise the target file's line coverage, and lint clean.

Use this template

Paste any of these into your AI agent (or your shell) to fetch or fork the workflow.

Fetch with CLI
goodeye templates get @randalolson/unit-test-generator
Fork with CLI
goodeye templates fork @randalolson/unit-test-generator

Also available from

MCP
get_template(identifier="@randalolson/unit-test-generator")
REST
curl https://api.goodeyelabs.com/v1/templates/@randalolson/unit-test-generator