test: email e2e updated nodemailer usage

This commit is contained in:
Elliot DeNolf
2024-04-22 14:13:38 -04:00
parent cbd1554589
commit 951e9fd7f2

View File

@@ -1,4 +1,4 @@
import { createNodemailerAdapter } from '@payloadcms/email-nodemailer' import { nodemailerAdapter } from '@payloadcms/email-nodemailer'
import path from 'path' import path from 'path'
import { getFileByPath } from 'payload/uploads' import { getFileByPath } from 'payload/uploads'
import { fileURLToPath } from 'url' import { fileURLToPath } from 'url'
@@ -16,7 +16,7 @@ export default buildConfigWithDefaults({
// ...extend config here // ...extend config here
collections: [PostsCollection, MediaCollection], collections: [PostsCollection, MediaCollection],
globals: [MenuGlobal], globals: [MenuGlobal],
email: createNodemailerAdapter(), email: nodemailerAdapter(),
onInit: async (payload) => { onInit: async (payload) => {
await payload.create({ await payload.create({
collection: 'users', collection: 'users',