testing by andrelandgraf/fullstackrecipes
npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill testing完整的测试设置,包含 Neon 数据库分支、Playwright 浏览器测试、集成测试和单元测试。具有自动 TTL 清理功能的隔离分支。
首先完成以下配方(按顺序):
使用 better-env 配置模块实现类型安全的服务器/公共环境变量访问、功能标志以及二选一的凭据约束。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/config-schema-setup
使用 Drizzle ORM 将 Next.js 应用连接到 Neon Postgres,并为 Vercel 无服务器函数优化连接池。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/neon-drizzle-setup
为测试创建隔离的 Neon 数据库分支。包含仅模式分支,通过 TTL 自动清理,测试服务器编排和环境变量管理。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/neon-test-branches
使用 Bun 内置的测试运行器配置单元测试。快速、兼容 Jest 语法、测试文件与源码同处,并支持模拟。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/unit-tests
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
通过直接导入处理程序,使用 Bun 的测试运行器测试 API 路由。快速、可靠的测试,无需 HTTP 开销。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/integration-tests
使用 Playwright 进行端到端浏览器测试。通过完整的浏览器自动化测试用户交互、表单验证、导航和视觉反馈。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/playwright-tests
测试策略和工作流程。测试并行运行,每个测试套件使用隔离的数据。UI 测试优先使用 Playwright,API 测试使用集成测试,逻辑测试使用单元测试。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-tests
每周安装量
68
代码仓库
GitHub 星标数
7
首次出现
2026年1月21日
安全审计
安装于
opencode52
codex49
cursor48
gemini-cli43
claude-code37
github-copilot36
Complete testing setup with Neon database branching, Playwright browser tests, integration tests, and unit tests. Isolated branches with automatic TTL cleanup.
Complete these recipes first (in order):
Use better-env config modules for type-safe server/public env access, feature flags, and either-or credential constraints.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/config-schema-setup
Connect a Next.js app to Neon Postgres using Drizzle ORM with optimized connection pooling for Vercel serverless functions.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/neon-drizzle-setup
Create isolated Neon database branches for testing. Schema-only branches with auto-cleanup via TTL, test server orchestration, and environment variable management.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/neon-test-branches
Configure unit testing with Bun's built-in test runner. Fast, Jest-compatible syntax, co-located test files, and mocking support.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/unit-tests
Test API routes by importing handlers directly with Bun's test runner. Fast, reliable tests without HTTP overhead.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/integration-tests
End-to-end browser testing with Playwright. Test user interactions, form validation, navigation, and visual feedback with full browser automation.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/playwright-tests
Testing strategy and workflow. Tests run in parallel with isolated data per suite. Prioritize Playwright for UI, integration tests for APIs, unit tests for logic.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-tests
Weekly Installs
68
Repository
GitHub Stars
7
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
opencode52
codex49
cursor48
gemini-cli43
claude-code37
github-copilot36
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
120,000 周安装