chore: make sure deprecation warnings do not happen in jest

This commit is contained in:
Alessio Gravili
2024-03-12 12:54:04 -04:00
parent 4983da7efa
commit a89180ea06

View File

@@ -10,6 +10,8 @@ export const startMemoryDB = async (
): Promise<SanitizedConfig> => {
const config = await configPromise
process.env.NODE_OPTIONS = '--no-deprecation'
console.log('---- CONNECTING TO MEMORY DB ----')
switch (process.env.PAYLOAD_DATABASE) {