test: revert default db adapter in integration tests to mongodb (#10079)
This commit is contained in:
@@ -27,7 +27,7 @@ jest.spyOn(nodemailer, 'createTestAccount').mockImplementation(() => {
|
|||||||
|
|
||||||
if (!process.env.PAYLOAD_DATABASE) {
|
if (!process.env.PAYLOAD_DATABASE) {
|
||||||
// Mutate env so we can use conditions by DB adapter in tests properly without ignoring // eslint no-jest-conditions.
|
// Mutate env so we can use conditions by DB adapter in tests properly without ignoring // eslint no-jest-conditions.
|
||||||
process.env.PAYLOAD_DATABASE = 'sqlite-uuid'
|
process.env.PAYLOAD_DATABASE = 'mongodb'
|
||||||
}
|
}
|
||||||
|
|
||||||
generateDatabaseAdapter(process.env.PAYLOAD_DATABASE)
|
generateDatabaseAdapter(process.env.PAYLOAD_DATABASE)
|
||||||
|
|||||||
Reference in New Issue
Block a user