nextjs-unit-test-creator - Generate tests for Next.js 16 applications
Generates and validates unit tests for Next.js 16 components, hooks, utilities, Server Actions, API routes, and optional Playwright E2E scenarios.
Tags
Updated: 2026-11-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Analyze Next.js source code
- Detect testing frameworks
- Generate test scenarios
- Request scenario confirmation
- Create test files
- Run project tests
- Validate Next.js patterns
- Delegate core test generation
Inputs
- Next.js project
- package.json
- Next.js source files
- Test framework configuration
- E2E testing request
- User scenario confirmation
Outputs
- Generated test scenarios
- Test files
- E2E test files
- Test execution results
- Scenario confirmation prompt
Requirements
- Next.js 16 project
- package.json
- Installed test framework
- Permission to create test files
- test-generator-framework
- Playwright for E2E tests
- OpenCode environment
