feat: initial test suite framework (#4929)

This commit is contained in:
Jarrod Flesch
2024-02-14 09:46:11 -05:00
committed by GitHub
parent 018755516b
commit 717a6b6d07
50 changed files with 663 additions and 486 deletions

View File

@@ -24,7 +24,7 @@ export const connect: Connect = async function connect(this: MongooseAdapter, pa
useFacet: undefined,
}
if (process.env.NODE_ENV === 'test') {
if ([process.env.APP_ENV, process.env.NODE_ENV].includes('test')) {
if (process.env.PAYLOAD_TEST_MONGO_URL) {
urlToConnect = process.env.PAYLOAD_TEST_MONGO_URL
} else {