fix: remove test workflow and suppress email errors in tests
Some checks failed
Basil CI/CD Pipeline / Code Linting (push) Successful in 1m1s
Basil CI/CD Pipeline / Web Tests (push) Failing after 1m12s
Basil CI/CD Pipeline / API Tests (push) Failing after 1m22s
Basil CI/CD Pipeline / Shared Package Tests (push) Successful in 56s
Basil CI/CD Pipeline / Security Scanning (push) Successful in 1m10s
Basil CI/CD Pipeline / Build All Packages (push) Has been skipped
Basil CI/CD Pipeline / E2E Tests (push) Has been skipped
Basil CI/CD Pipeline / Build & Push Docker Images (push) Has been skipped
Basil CI/CD Pipeline / Trigger Deployment (push) Has been skipped

- Remove test-harbor-secrets.yml workflow (no longer needed)
- Mock email service in meal-plans.routes.real.test.ts to prevent actual email sending
- Prevents 'Failed to send verification email' errors in CI

This eliminates email SMTP errors that appear during registration in integration tests
This commit is contained in:
2026-01-15 02:52:59 +00:00
parent 8b219b456e
commit 86ef94ea92
2 changed files with 7 additions and 94 deletions

View File

@@ -1,8 +1,14 @@
import { describe, it, expect, beforeAll, afterAll, beforeEach } from 'vitest';
import { describe, it, expect, beforeAll, afterAll, beforeEach, vi } from 'vitest';
import request from 'supertest';
import app from '../index';
import prisma from '../config/database';
// Mock email service to prevent actual email sending in tests
vi.mock('../services/email.service', () => ({
sendVerificationEmail: vi.fn().mockResolvedValue(undefined),
sendPasswordResetEmail: vi.fn().mockResolvedValue(undefined),
}));
describe('Meal Plans Routes - Real Integration Tests', () => {
let authToken: string;
let testUserId: string;