Shumiland/vitest.setup.ts
Vadym Samoilenko 9b41fa447a
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions
feat: complete backend B1-B7 — Payload CMS, ezy payments, leads, deploy
- B1: Next.js 15 + Payload CMS 3.0 + Postgres 16, ESLint, Prettier, Husky, Vitest
- B2: 9 collections, 6 globals, 12 Page Builder blocks, access control, slugify/revalidate hooks
- B3: ezy.com.ua payments, Binotel HMAC webhook, leads API, Telegram bot, Resend email, rate limiting
- B4: Tariffs collection with ezy API sync (cron + manual), dynamic pricing source-of-truth
- B5: 13 test files covering unit libs and all API routes
- B6: Dockerfile multi-stage, docker-compose.prod.yml, nginx.conf SSL, GitHub Actions CI/CD, health endpoint
- B7: docs/admin-guide-ua.md (marketer guide), docs/deploy.md (VPS instructions), README quickstart

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 19:14:54 +01:00

13 lines
636 B
TypeScript

import { vi } from 'vitest'
vi.stubEnv('DATABASE_URL', 'postgresql://postgres:postgres@localhost:5432/shumiland_test')
vi.stubEnv('PAYLOAD_SECRET', 'test-secret-32-characters-long!!')
vi.stubEnv('NEXT_PUBLIC_SITE_URL', 'http://localhost:3000')
vi.stubEnv('REVALIDATE_SECRET', 'test-revalidate-secret')
vi.stubEnv('CRON_SECRET', 'test-cron-secret')
vi.stubEnv('EZY_PARTNER_KEY', 'test-partner-key')
vi.stubEnv('EZY_ACTIVITY', 'test-activity')
vi.stubEnv('TELEGRAM_BOT_TOKEN', 'test-bot-token')
vi.stubEnv('TELEGRAM_CHAT_ID', '123456789')
vi.stubEnv('RESEND_API_KEY', 're_test_key')
vi.stubEnv('BINOTEL_HMAC_SECRET', 'test-hmac-secret')