This commit is contained in:
2025-05-24 01:00:30 +00:00
parent cb52446f65
commit f2e9ff0a51
38 changed files with 223 additions and 175 deletions

View File

@ -2,13 +2,12 @@ import { tap, expect } from '@git.zone/tstest/tapbundle';
import * as net from 'net';
import * as fs from 'fs';
import * as path from 'path';
import { startTestServer, stopTestServer } from '../../helpers/server.loader.js';
import type { SmtpServer } from '../../../ts/mail/delivery/smtpserver/index.js';
import { startTestServer, stopTestServer } from '../../helpers/server.loader.js'
import type { ITestServer } from '../../helpers/server.loader.js';
const TEST_PORT = 2525;
const SAMPLE_FILES_DIR = path.join(process.cwd(), '.nogit', 'sample-files');
let testServer: SmtpServer;
let testServer: ITestServer;
// Helper function to read and encode files
function readFileAsBase64(filePath: string): string {