test: add test email adapter, use for all tests by default (#6120)
This commit is contained in:
@@ -34,6 +34,7 @@ import sharp from 'sharp'
|
||||
|
||||
import { reInitEndpoint } from './helpers/reInit.js'
|
||||
import { localAPIEndpoint } from './helpers/sdk/endpoint.js'
|
||||
import { testEmailAdapter } from './testEmailAdapter.js'
|
||||
// process.env.PAYLOAD_DATABASE = 'postgres'
|
||||
|
||||
export async function buildConfigWithDefaults(
|
||||
@@ -74,23 +75,7 @@ export async function buildConfigWithDefaults(
|
||||
const config: Config = {
|
||||
db: databaseAdapters[process.env.PAYLOAD_DATABASE || 'mongodb'],
|
||||
secret: 'TEST_SECRET',
|
||||
//editor: slateEditor({}),
|
||||
// editor: slateEditor({
|
||||
// admin: {
|
||||
// upload: {
|
||||
// collections: {
|
||||
// media: {
|
||||
// fields: [
|
||||
// {
|
||||
// name: 'alt',
|
||||
// type: 'text',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// }),
|
||||
email: testEmailAdapter,
|
||||
endpoints: [localAPIEndpoint, reInitEndpoint],
|
||||
editor: lexicalEditor({
|
||||
features: [
|
||||
|
||||
Reference in New Issue
Block a user