From 83c617b4528fcc71c3eae1fd00769b299c59fd25 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Thu, 18 Apr 2024 14:17:29 -0400 Subject: [PATCH] test: clean up email-nodemailer config --- test/email-nodemailer/config.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/test/email-nodemailer/config.ts b/test/email-nodemailer/config.ts index 1219f0acba..6cd51edc29 100644 --- a/test/email-nodemailer/config.ts +++ b/test/email-nodemailer/config.ts @@ -1,14 +1,8 @@ import { createNodemailerAdapter } from '@payloadcms/email-nodemailer' -import path from 'path' -import { getFileByPath } from 'payload/uploads' -import { fileURLToPath } from 'url' import { buildConfigWithDefaults } from '../buildConfigWithDefaults.js' import { devUser } from '../credentials.js' -const filename = fileURLToPath(import.meta.url) -const dirname = path.dirname(filename) - export default buildConfigWithDefaults({ // ...extend config here collections: [], @@ -27,14 +21,6 @@ export default buildConfigWithDefaults({ subject: 'This was sent on init', }) - // Create image - const imageFilePath = path.resolve(dirname, '../uploads/image.png') - const imageFile = await getFileByPath(imageFilePath) - - await payload.create({ - collection: 'media', - data: {}, - file: imageFile, - }) + payload.logger.info({ msg: 'Email sent', email }) }, })