sendapp-testing
Testing workflows for Send app. Use when running tests, debugging test failures, or setting up test infrastructure. Covers Jest (packages), pgTAP (Supabase), and Playwright (E2E).
When & Why to Use This Skill
This Claude skill provides a comprehensive testing suite for the Send app, automating workflows across multiple layers of the technology stack. It streamlines the execution of unit tests with Jest, database validation via pgTAP for Supabase, and end-to-end (E2E) testing using Playwright, helping developers maintain high code quality and accelerate the debugging process.
Use Cases
- Running unit tests for specific packages within a monorepo to validate individual component logic.
- Executing database schema and functional tests using pgTAP in Supabase environments, including automated database resets.
- Performing full-scale E2E testing for Next.js applications with Playwright to ensure seamless user journeys.
- Debugging test failures by providing specific commands and environment setup guidance for different testing frameworks.
- Setting up and verifying test infrastructure, including local Supabase instances and Tilt-based development environments.
| name | sendapp-testing |
|---|---|
| description | Testing workflows for Send app. Use when running tests, debugging test failures, or setting up test infrastructure. Covers Jest (packages), pgTAP (Supabase), and Playwright (E2E). |
Testing in Send App
Quick Reference
| Area | Framework | Command |
|---|---|---|
Packages (/packages/*) |
Jest | cd packages/<name> && yarn test |
Database (/supabase) |
pgTAP | cd supabase && yarn test |
E2E (/apps/next) |
Playwright | cd packages/playwright && yarn test |
Jest (Packages)
# Run all tests in a package
cd packages/<package-name> && yarn test
# Run single test file
cd packages/<package-name> && yarn test path/to/test.test.ts
pgTAP (Supabase)
# Run database tests
cd supabase && yarn test
Before running tests after schema changes:
cd supabase && yarn reset
Requires local Supabase instance:
cd supabase && yarn start
Playwright (E2E)
cd packages/playwright && yarn test
This loads environment variables via _with-env automatically.
Prerequisites:
- Next.js app must be running (
yarn devin/apps/next) - Or use Tilt:
tilt up next:web
Other Apps
Apps under /apps (excluding /apps/next) don't have standardized testing. Discuss testing strategy when working in these areas.