The Prompt
Write a production-ready Jest test script that automates the User Registration flow. Ensure you include assertions, handle async operations properly, and include at least two negative test cases. Provide comments explaining the logic.
How to use this prompt
Copy this prompt to ChatGPT or Claude. Add your specific DOM structure or API contract for the User Registration feature to get a customized Jest test script.