WIP: form attachments tests
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
6003b3d7d7
commit
02b1e96d3d
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user