WIP: form attachments tests

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-13 16:24:27 +01:00
co-authored by Claude Fable 5.2
parent 6003b3d7d7
commit 02b1e96d3d
5 changed files with 1025 additions and 2 deletions
+2
View File
@@ -3,6 +3,7 @@ import type { BasePayload, PayloadEmailAdapter } from 'payload'
import { createServer, type Server } from 'node:net'
import { afterAll, afterEach, beforeAll, describe, expect, test, vi } from 'vitest'
import { clearGraphTokenCache } from '../src/modules/email/graphAdapter.js'
import { mailAdapter } from '../src/modules/email/mailAdapter.js'
import { panelSmtpAdapter } from '../src/modules/email/panelSmtpAdapter.js'
import { sendEmail } from '../src/modules/email/sendEmail.js'
@@ -90,6 +91,7 @@ describe('e-mail transports (nodemailer 10)', () => {
afterEach(() => {
received.length = 0
clearGraphTokenCache()
vi.unstubAllEnvs()
vi.unstubAllGlobals()
})