test: add nodemailer adapter to email test config
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { createNodemailerAdapter } 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'
|
||||||
@@ -15,6 +16,7 @@ export default buildConfigWithDefaults({
|
|||||||
// ...extend config here
|
// ...extend config here
|
||||||
collections: [PostsCollection, MediaCollection],
|
collections: [PostsCollection, MediaCollection],
|
||||||
globals: [MenuGlobal],
|
globals: [MenuGlobal],
|
||||||
|
email: createNodemailerAdapter(),
|
||||||
onInit: async (payload) => {
|
onInit: async (payload) => {
|
||||||
await payload.create({
|
await payload.create({
|
||||||
collection: 'users',
|
collection: 'users',
|
||||||
|
|||||||
Reference in New Issue
Block a user