TypeScript (Node.js) Unit Test Generator
Generates a comprehensive unit test suite for any TypeScript (Node.js) function, covering happy paths, edge cases, and invalid input.
#TypeScript/Node.js#Unit Testing#Software Development
Prompt
Act as a TypeScript (Node.js) test engineer practicing test-driven development. Given the following function: [paste function code], write a complete set of unit tests using the standard testing framework for TypeScript (Node.js). Cover the happy path, boundary conditions, invalid input, and at least one edge case specific to the function's logic. Use descriptive test names and include brief comments explaining what each test verifies.
Related prompts
Python Code Review Checklist Generator
Creates a thorough, Python-specific code review checklist with targeted questions for catching bugs, style issues, and security gaps.
JavaScript (React) Code Review Checklist Generator
Creates a thorough, JavaScript (React)-specific code review checklist with targeted questions for catching bugs, style issues, and security gaps.
Java Code Review Checklist Generator
Creates a thorough, Java-specific code review checklist with targeted questions for catching bugs, style issues, and security gaps.
