sendapp-testing

0xsend 的头像作者 0xsend

测试发送应用程序的工作流程。在运行测试、调试测试失败或设置测试基础架构时使用。涵盖 Jest(包)、pgTAP (Supabase) 和 Playwright (E2E)。

📖 中文导读:测试发送应用程序的工作流程。在运行测试、调试测试失败或设置测试基础架构时使用。涵盖 Jest(包)、pgTAP (Supabase) 和 Playwright (E2E)。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

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 dev in /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.