NeLocker
☰
Library
Free Prompts
Pricing
Supporters
Our Stance
💡
Want a prompt that isn't here?
Tell us — we build the vault around you.
Suggest a prompt
×
← NeLocker vault
Write Unit Tests
Generates meaningful tests, not just happy-path filler.
Universal
Claude
ChatGPT
Gemini
Grok
💡 The original prompt — works in any model. Start here, then tune per model.
Fill in the blanks — your answers carry across every model
Stack Framework
Code
Write unit tests for this code. Stack + test framework: {STACK_FRAMEWORK} <code> {CODE} </code> Cover: 1. The normal/happy path. 2. Edge cases (empty, null, boundary, large, unexpected types). 3. Error conditions and how it should fail. For each test: a clear name describing the scenario, arrange/act/assert. Point out any behavior that's untestable as written and why. Don't test the framework — test MY logic.
📋 Copy
↩ Reset
fill the blanks above ↑
💬
Subscribe
to read & share member tweaks for this prompt.