Writing tests is tedious. Let AI find the edge cases you missed.
“Act as a Senior QA Engineer. For the following function: [Paste Code].
Generate a comprehensive test suite using [Framework – e.g., xUnit/Jest].
Include:
1. Happy paths. 2. Edge cases (nulls, empty, max/min). 3. Error handling verification.
4. Mock dependencies where necessary.
Ensure the tests follow the Arrange-Act-Assert (AAA) pattern.”
