Generate Unit Tests for Existing Business Logic
Add missing unit tests to existing business logic using Copilot as a test generator.
category:testing
unit-tests
jest
workflow
multi-step
0
Prompt
A workflow to create high-value unit tests for untested areas of logic using Copilot. ## Steps: 1. Identify key logic without test coverage. 2. Create a matching test file. 3. Paste signatures or sample calls as comments. 4. Ask Copilot: "Generate Jest tests covering typical and edge cases." 5. Review and refine test expectations. 6. Run tests and fix issues. 7. Add regression tests for recently fixed bugs.