From 6e4135e790b98ee647cc7fb654aa219c1b587c2b Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Thu, 18 Apr 2024 13:36:48 -0400 Subject: [PATCH] test: add nodemailer adapter to email test config --- test/email/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/email/config.ts b/test/email/config.ts index e767d737c..434bbe843 100644 --- a/test/email/config.ts +++ b/test/email/config.ts @@ -1,3 +1,4 @@ +import { createNodemailerAdapter } from '@payloadcms/email-nodemailer' import path from 'path' import { getFileByPath } from 'payload/uploads' import { fileURLToPath } from 'url' @@ -15,6 +16,7 @@ export default buildConfigWithDefaults({ // ...extend config here collections: [PostsCollection, MediaCollection], globals: [MenuGlobal], + email: createNodemailerAdapter(), onInit: async (payload) => { await payload.create({ collection: 'users',