Generate thorough unit test suites with edge cases, mocking, and coverage for any function or module.
Write a comprehensive test suite for [function/module]. Requirements: - Test the happy path with typical inputs - Test edge cases: empty inputs, null/undefined, boundary values - Test error conditions: invalid inputs, network failures, timeouts - Mock external dependencies (API calls, database, file system) - Use descriptive test names that explain the expected behavior - Group related tests with describe blocks - Add setup/teardown (beforeEach/afterEach) where needed - Test async operations with proper await/Promise handling - Verify error messages and error types, not just that errors are thrown - Include snapshot tests only if output is complex and stable - Aim for branch coverage, not just line coverage - Add comments explaining WHY edge cases matter - Follow AAA pattern: Arrange, Act, Assert
Select the function or module code, then apply this prompt. Cursor will analyze the code and generate tests covering all branches. Review generated mocks for correctness.
Agent Library is a centralized collection of reusable AI agent skills, workflows, prompts, and specialized knowledge modules. Built for Claude Code, Codex, Cursor, and other AI coding agents with an efficient on-demand loading architecture.
An open-source collection of production-ready AI skills, prompts, templates, and workflows for Claude, ChatGPT, Gemini, Cursor, and other AI tools.
A collection of Skills (system prompts) for autonomous AI Agents and LLMs (Google Antigravity, Claude Code, GitHub Copilot, Codex, Cursor, AutoGPT, ChatGPT, Gemini).
许惟的 AI 工具合集 · A growing collection of practical AI tools & skills. First up: diagram-generator (one sentence → clean diagrams).
A curated collection of high-quality AI prompts for ChatGPT, Claude, Gemini, Cursor, and other AI assistants
A curated collection of ready-to-run automation prompts for real-world workflows.
Workflows from the Neura Market marketplace related to this Cursor resource