Full Prompt
View Source1. Analyze the logic of the provided functions or components. 2. Write unit tests covering the standard "happy path". 3. Write edge-case and failure-state tests with appropriate mocks/stubs. 4. Ensure the output utilizes best practices for the target testing framework.