Add Integration Tests Around a Critical API

Use Copilot to write integration tests around your most important API endpoint.

category:testing
integration-tests
api
workflow
multi-step
0

Prompt

A workflow to ensure critical backend paths are fully covered using automated integration tests assisted by Copilot.

## Steps:

1. Select a critical API endpoint.

2. Create an integration test file for it.

3. Ask Copilot: "Write integration tests for success, validation errors, and auth failures."

4. Provide example request payloads.

5. Run tests and adjust setup code.

6. Commit once coverage is satisfactory.