mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
[web] Update @aws-sdk/client-ses to v2 (CE/SP only) (#35531)
This new version is compatible with the current nodemailer version. GitOrigin-RevId: 8244fa8fc42edbc6aa7b702ec7975e9eee7f9879
This commit is contained in:
@@ -32,14 +32,16 @@ describe('EmailSender', function () {
|
||||
|
||||
ctx.ses = { createTransport: () => ctx.sesClient }
|
||||
|
||||
ctx.SESClient = sinon.stub()
|
||||
ctx.SESv2Client = sinon.stub()
|
||||
ctx.SendEmailCommand = sinon.stub()
|
||||
|
||||
vi.doMock('nodemailer', () => ({
|
||||
default: ctx.ses,
|
||||
}))
|
||||
|
||||
vi.doMock('@aws-sdk/client-ses', () => ({
|
||||
SESClient: ctx.SESClient,
|
||||
vi.doMock('@aws-sdk/client-sesv2', () => ({
|
||||
SESv2Client: ctx.SESv2Client,
|
||||
SendEmailCommand: ctx.SendEmailCommand,
|
||||
}))
|
||||
|
||||
vi.doMock('@overleaf/settings', () => ({
|
||||
|
||||
Reference in New Issue
Block a user