feat: add web testing foundation with infra-backed suites (#349)
* feat: add web test framework with infra-backed suites * fix: honor DATABASE_URL env in integration prepare script * fix: apply web test review feedback * fix: streamline web test infra lifecycle and workflow scope
This commit is contained in:
@@ -10,6 +10,16 @@
|
||||
"build:web:local": "pnpm load-env -- turbo build --filter=@usesend/email-editor --filter=web ",
|
||||
"start:web:local": "pnpm load-env -- cd apps/web && pnpm start",
|
||||
"dev": "pnpm load-env -- turbo dev",
|
||||
"test:web": "pnpm --filter=web test",
|
||||
"test:web:all": "pnpm test:infra:up && (pnpm --filter=web test:all; code=$?; pnpm test:infra:down; exit $code)",
|
||||
"test:web:all:raw": "pnpm --filter=web test:all",
|
||||
"test:web:unit": "pnpm --filter=web test:unit",
|
||||
"test:web:trpc": "pnpm --filter=web test:trpc",
|
||||
"test:web:api": "pnpm --filter=web test:api",
|
||||
"test:web:integration": "pnpm --filter=web test:integration",
|
||||
"test:web:integration:full": "pnpm test:infra:up && (pnpm --filter=web test:integration:full; code=$?; pnpm test:infra:down; exit $code)",
|
||||
"test:infra:up": "docker compose -f docker/testing/compose.yml up -d --wait",
|
||||
"test:infra:down": "docker compose -f docker/testing/compose.yml down -v",
|
||||
"dev:docs": "cd apps/docs && mintlify dev",
|
||||
"dev:marketing": "cd apps/marketing && turbo dev",
|
||||
"lint": "turbo lint",
|
||||
|
||||
Reference in New Issue
Block a user