Testing
Automates regression tests using Andre Landgraf's methodology, ensuring code quality and identifying potential issues quickly.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add andrelandgraf-testing npx -- -y @trustedskills/andrelandgraf-testing
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"andrelandgraf-testing": {
"command": "npx",
"args": [
"-y",
"@trustedskills/andrelandgraf-testing"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automates a comprehensive testing setup for Next.js applications, incorporating Neon database branching, Playwright browser tests, integration tests, and unit tests. It creates isolated test environments with automatic cleanup using TTL (Time-To-Live), streamlines server orchestration, and manages environment variables effectively. The goal is to ensure code quality by identifying potential issues quickly through a structured testing workflow.
When to use it
- When setting up automated regression tests for a Next.js application connected to a Neon Postgres database.
- For ensuring the reliability of API routes through direct handler imports in integration tests.
- To perform end-to-end browser testing, validating user interactions and visual feedback using Playwright.
- When needing isolated test environments with automatic cleanup for efficient development cycles.
- To establish a consistent testing strategy prioritizing Playwright for UI, integration tests for APIs, and unit tests for logic.
Key capabilities
- Neon database branching for isolated testing environments.
- Automatic TTL cleanup of schema-only branches.
- Unit testing with Bun's built-in test runner (Jest-compatible syntax).
- Integration testing by importing API handlers directly with Bun.
- Browser testing using Playwright for end-to-end automation.
- Parallel test execution with isolated data per suite.
Example prompts
- "Run the browser tests using Playwright."
- "Execute the integration tests for the API routes."
- "Start a new Neon test branch and run the unit tests."
Tips & gotchas
- This skill requires several prerequisite recipes to be completed first, including setting up type-safe environment configuration, connecting to Neon Postgres with Drizzle ORM, creating Neon test branches, configuring unit tests, and setting up integration and browser tests. Refer to the linked URLs for detailed instructions.
- The testing strategy prioritizes Playwright for UI testing, integration tests for APIs, and unit tests for logic; ensure your tests are structured accordingly.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.