* chore: attach mongoMemoryServer to db and destroy in tests * bump mongodb-memory-server to 9.x --------- Co-authored-by: Paul Popus <paul@nouance.io>
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
import type { Payload } from '../../packages/payload/src/index.js'
|
|
import { getPayload } from '../../packages/payload/src/index.js'
|
|
import { startMemoryDB } from '../startMemoryDB.js'
|
|
import configPromise from './config.js'
|
|
|
|
let payload: Payload
|
|
|
|
describe('@payloadcms/plugin-sentry', () => {
|
|
beforeAll(async () => {
|
|
const config = await startMemoryDB(configPromise)
|
|
payload = await getPayload({ config })
|
|
})
|
|
|
|
afterAll(async () => {
|
|
if (typeof payload.db.destroy === 'function') {
|
|
await payload.db.destroy()
|
|
}
|
|
})
|
|
|
|
describe('tests', () => {
|
|
it.todo('plugin-sentry tests')
|
|
})
|
|
})
|